home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / planetkit / amigakit / mui36dev.lha / MUI / Developer / C / Include / libraries / mui.h
C/C++ Source or Header  |  1996-08-20  |  126KB  |  3,148 lines

  1. /***************************************************************************
  2. **
  3. ** MUI - MagicUserInterface
  4. ** (c) 1993-1996 Stefan Stuntz
  5. **
  6. ** Main Header File
  7. **
  8. ****************************************************************************
  9. ** Class Tree
  10. ****************************************************************************
  11. **
  12. ** rootclass                    (BOOPSI's base class)
  13. ** +--Notify                   (implements notification mechanism)
  14. ** !  +--Family                (handles multiple children)
  15. ** !  !  +--Menustrip          (describes a complete menu strip)
  16. ** !  !  +--Menu               (describes a single menu)
  17. ** !  !  \--Menuitem           (describes a single menu item)
  18. ** !  +--Application           (main class for all applications)
  19. ** !  +--Window                (main class for all windows)
  20. ** !  !  \--Aboutmui           (About window of MUI preferences)
  21. ** !  +--Area                  (base class for all GUI elements)
  22. ** !     +--Rectangle          (spacing object)
  23. ** !     +--Balance            (balancing separator bar)
  24. ** !     +--Image              (image display)
  25. ** !     +--Bitmap             (draws bitmaps)
  26. ** !     !  \--Bodychunk       (makes bitmap from ILBM body chunk)
  27. ** !     +--Text               (text display)
  28. ** !     +--Gadget             (base class for intuition gadgets)
  29. ** !     !  +--String          (string gadget)
  30. ** !     !  +--Boopsi          (interface to BOOPSI gadgets)
  31. ** !     !  \--Prop            (proportional gadget)
  32. ** !     +--Gauge              (fule gauge)
  33. ** !     +--Scale              (percentage scale)
  34. ** !     +--Colorfield         (field with changeable color)
  35. ** !     +--List               (line-oriented list)
  36. ** !     !  +--Floattext       (special list with floating text)
  37. ** !     !  +--Volumelist      (special list with volumes)
  38. ** !     !  +--Scrmodelist     (special list with screen modes)
  39. ** !     !  \--Dirlist         (special list with files)
  40. ** !     +--Numeric            (base class for slider gadgets)
  41. ** !     !  +--Knob            (turning knob)
  42. ** !     !  +--Levelmeter      (level display)
  43. ** !     !  +--Numericbutton   (space saving popup slider)
  44. ** !     !  \--Slider          (traditional slider)
  45. ** !     +--Framedisplay       (private)
  46. ** !     !  \--Popframe        (private)
  47. ** !     +--Imagedisplay       (private)
  48. ** !     !  \--Popimage        (private)
  49. ** !     +--Pendisplay         (displays a pen specification)
  50. ** !     !  \--Poppen          (popup button to adjust a pen spec)
  51. ** !     +--Group              (groups other GUI elements)
  52. ** !        +--Mccprefs        (private)
  53. ** !        +--Register        (handles page groups with titles)
  54. ** !        !  \--Penadjust    (group to adjust a pen)
  55. ** !        +--Settingsgroup   (private)
  56. ** !        +--Settings        (private)
  57. ** !        +--Frameadjust     (private)
  58. ** !        +--Imageadjust     (private)
  59. ** !        +--Virtgroup       (handles virtual groups)
  60. ** !        +--Scrollgroup     (virtual groups with scrollbars)
  61. ** !        +--Scrollbar       (traditional scrollbar)
  62. ** !        +--Listview        (listview)
  63. ** !        +--Radio           (radio button)
  64. ** !        +--Cycle           (cycle gadget)
  65. ** !        +--Coloradjust     (several gadgets to adjust a color)
  66. ** !        +--Palette         (complete palette gadget)
  67. ** !        +--Popstring       (base class for popup objects)
  68. ** !           +--Popobject    (popup aynthing in a separate window)
  69. ** !           !  +--Poplist   (popup a simple listview)
  70. ** !           !  \--Popscreen (popup a list of public screens)
  71. ** !           \--Popasl       (popup an asl requester)
  72. ** +--Semaphore                (semaphore equipped objects)
  73. **    +--Applist               (private)
  74. **    +--Dataspace             (handles general purpose data spaces)
  75. **       \--Configdata         (private)
  76. **
  77. ****************************************************************************
  78. ** General Header File Information
  79. ****************************************************************************
  80. **
  81. ** All macro and structure definitions follow these rules:
  82. **
  83. ** Name                       Meaning
  84. **
  85. ** MUIC_<class>               Name of a class
  86. ** MUIM_<class>_<method>      Method
  87. ** MUIP_<class>_<method>      Methods parameter structure
  88. ** MUIV_<class>_<method>_<x>  Special method value
  89. ** MUIA_<class>_<attrib>      Attribute
  90. ** MUIV_<class>_<attrib>_<x>  Special attribute value
  91. ** MUIE_<error>               Error return code from MUI_Error()
  92. ** MUII_<name>                Standard MUI image
  93. ** MUIX_<code>                Control codes for text strings
  94. ** MUIO_<name>                Object type for MUI_MakeObject()
  95. **
  96. ** MUIA_... attribute definitions are followed by a comment
  97. ** consisting of the three possible letters I, S and G.
  98. ** I: it's possible to specify this attribute at object creation time.
  99. ** S: it's possible to change this attribute with SetAttrs().
  100. ** G: it's possible to get this attribute with GetAttr().
  101. **
  102. ** Items marked with "Custom Class" are for use in custom classes only!
  103. */
  104.  
  105.  
  106. #ifndef LIBRARIES_MUI_H
  107. #define LIBRARIES_MUI_H
  108.  
  109. #ifndef EXEC_TYPES_H
  110. #include "exec/types.h"
  111. #endif
  112.  
  113. #ifndef DOS_DOS_H
  114. #include "dos/dos.h"
  115. #endif
  116.  
  117. #ifndef INTUITION_CLASSES_H
  118. #include "intuition/classes.h"
  119. #endif
  120.  
  121. #ifndef INTUITION_SCREENS_H
  122. #include "intuition/screens.h"
  123. #endif
  124.  
  125. #ifndef CLIB_INTUITION_PROTOS_H
  126. #include "clib/intuition_protos.h"
  127. #endif
  128.  
  129.  
  130. /***************************************************************************
  131. ** Library specification
  132. ***************************************************************************/
  133.  
  134. #define MUIMASTER_NAME    "muimaster.library"
  135. #define MUIMASTER_VMIN    11
  136. #define MUIMASTER_VLATEST 17
  137.  
  138. /*
  139. ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  140. ** Warning, some of the macros in this header file work only with
  141. ** muimaster.library V11 and above. If you recompile your programs,
  142. ** be sure to open muimaster.library with MUIMASTER_VMIN as version number.
  143. ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  144. */
  145.  
  146. #define MUI_OBSOLETE /* include obsolete identifiers */
  147.  
  148.  
  149.  
  150. /*************************************************************************
  151. ** Config items for MUIM_GetConfigItem
  152. *************************************************************************/
  153.  
  154.  
  155. #define MUICFG_PublicScreen            36
  156.  
  157.  
  158.  
  159.  
  160. /*************************************************************************
  161. ** Black box specification structures for images, pens, frames
  162. *************************************************************************/
  163.  
  164. struct MUI_PenSpec
  165. {
  166.     char buf[32];
  167. };
  168.  
  169.  
  170.  
  171. /*************************************************************************
  172. ** Public Screen Stuff
  173. *************************************************************************/
  174.  
  175. /*
  176. ** NOTE: This stuff is only included to allow compilation of the supplied
  177. **       public screen manager for educational purposes. Everything
  178. **       here is subject to change without notice and I guarantee to
  179. **       do that just for fun!
  180. **       More info can be found in the screen manager source file.
  181. */
  182.  
  183. #define PSD_INITIAL_NAME   "(unnamed)"
  184. #define PSD_INITIAL_TITLE  "MUI Public Screen"
  185. #define PSD_ID_MPUB        MAKE_ID('M','P','U','B')
  186.  
  187. #define PSD_NAME_FRONTMOST "«Frontmost»"
  188.  
  189. #define PSD_FILENAME_SAVE "envarc:mui/PublicScreens.iff"
  190. #define PSD_FILENAME_USE  "env:mui/PublicScreens.iff"
  191.  
  192. #define PSD_MAXLEN_NAME         32
  193. #define PSD_MAXLEN_TITLE       128
  194. #define PSD_MAXLEN_FONT         48
  195. #define PSD_MAXLEN_BACKGROUND  256
  196. #define PSD_NUMCOLS              8
  197. #define PSD_MAXSYSPENS          20
  198. #define PSD_NUMSYSPENS          12
  199. #define PSD_MAXMUIPENS          10
  200. #define PSD_NUMMUIPENS  MPEN_COUNT
  201.  
  202. struct MUI_RGBcolor
  203. {
  204.     ULONG red;
  205.     ULONG green;
  206.     ULONG blue;
  207. };
  208.  
  209. struct MUI_PubScreenDesc
  210. {
  211.     LONG  Version;
  212.  
  213.     char  Name[PSD_MAXLEN_NAME];
  214.     char  Title[PSD_MAXLEN_TITLE];
  215.     char  Font[PSD_MAXLEN_FONT];
  216.     char  Background[PSD_MAXLEN_BACKGROUND];
  217.  
  218.     ULONG DisplayID;
  219.  
  220.     UWORD DisplayWidth;
  221.     UWORD DisplayHeight;
  222.  
  223.     UBYTE DisplayDepth;
  224.     UBYTE OverscanType;
  225.     UBYTE AutoScroll;
  226.     UBYTE NoDrag;
  227.     UBYTE Exclusive;
  228.     UBYTE Interleaved;
  229.     UBYTE SysDefault;
  230.     UBYTE Behind;
  231.     UBYTE AutoClose;
  232.     UBYTE CloseGadget;
  233.     UBYTE DummyWasForeign;
  234.  
  235.     BYTE SystemPens[PSD_MAXSYSPENS];
  236.     UBYTE Reserved[1+7*4-PSD_MAXSYSPENS];
  237.  
  238.     struct MUI_RGBcolor Palette[PSD_NUMCOLS];
  239.     struct MUI_RGBcolor rsvd[PSD_MAXSYSPENS-PSD_NUMCOLS];
  240.  
  241.     struct MUI_PenSpec rsvd2[PSD_MAXMUIPENS];
  242.  
  243.     LONG Changed;
  244.     APTR UserData;
  245. };
  246.  
  247. struct MUIS_InfoClient
  248. {
  249.     struct MinNode node;
  250.     struct Task *task;
  251.     ULONG sigbit;
  252. };
  253.  
  254.  
  255. /***************************************************************************
  256. ** Object Types for MUI_MakeObject()
  257. ***************************************************************************/
  258.  
  259. #define MUIO_Label          1   /* STRPTR label, ULONG flags */
  260. #define MUIO_Button         2   /* STRPTR label */
  261. #define MUIO_Checkmark      3   /* STRPTR label */
  262. #define MUIO_Cycle          4   /* STRPTR label, STRPTR *entries */
  263. #define MUIO_Radio          5   /* STRPTR label, STRPTR *entries */
  264. #define MUIO_Slider         6   /* STRPTR label, LONG min, LONG max */
  265. #define MUIO_String         7   /* STRPTR label, LONG maxlen */
  266. #define MUIO_PopButton      8   /* STRPTR imagespec */
  267. #define MUIO_HSpace         9   /* LONG space   */
  268. #define MUIO_VSpace        10   /* LONG space   */
  269. #define MUIO_HBar          11   /* LONG space   */
  270. #define MUIO_VBar          12   /* LONG space   */
  271. #define MUIO_MenustripNM   13   /* struct NewMenu *nm, ULONG flags */
  272. #define MUIO_Menuitem      14   /* STRPTR label, STRPTR shortcut, ULONG flags, ULONG data  */
  273. #define MUIO_BarTitle      15   /* STRPTR label */
  274. #define MUIO_NumericButton 16   /* STRPTR label, LONG min, LONG max, STRPTR format */
  275.  
  276. #define MUIO_Menuitem_CopyStrings (1<<30)
  277.  
  278. #define MUIO_Label_SingleFrame   (1<< 8)
  279. #define MUIO_Label_DoubleFrame   (1<< 9)
  280. #define MUIO_Label_LeftAligned   (1<<10)
  281. #define MUIO_Label_Centered      (1<<11)
  282. #define MUIO_Label_FreeVert      (1<<12)
  283.  
  284. #define MUIO_MenustripNM_CommandKeyCheck (1<<0) /* check for "localized" menu items such as "O\0Open" */
  285.  
  286.  
  287.  
  288. /***************************************************************************
  289. ** ARexx Interface
  290. ***************************************************************************/
  291.  
  292. struct MUI_Command
  293. {
  294.     char        *mc_Name;
  295.     char        *mc_Template;
  296.     LONG         mc_Parameters;
  297.     struct Hook *mc_Hook;
  298.     LONG         mc_Reserved[5];
  299. };
  300.  
  301. #define MC_TEMPLATE_ID ((STRPTR)~0)
  302.  
  303. #define MUI_RXERR_BADDEFINITION  -1
  304. #define MUI_RXERR_OUTOFMEMORY    -2
  305. #define MUI_RXERR_UNKNOWNCOMMAND -3
  306. #define MUI_RXERR_BADSYNTAX      -4
  307.  
  308.  
  309. /***************************************************************************
  310. ** Return values for MUI_Error()
  311. ***************************************************************************/
  312.  
  313. #define MUIE_OK                  0
  314. #define MUIE_OutOfMemory         1
  315. #define MUIE_OutOfGfxMemory      2
  316. #define MUIE_InvalidWindowObject 3
  317. #define MUIE_MissingLibrary      4
  318. #define MUIE_NoARexx             5
  319. #define MUIE_SingleTask          6
  320.  
  321.  
  322.  
  323. /***************************************************************************
  324. ** Standard MUI Images & Backgrounds
  325. ***************************************************************************/
  326.  
  327. #define MUII_WindowBack      0   /* These images are configured   */
  328. #define MUII_RequesterBack   1   /* with the preferences program. */
  329. #define MUII_ButtonBack      2
  330. #define MUII_ListBack        3
  331. #define MUII_TextBack        4
  332. #define MUII_PropBack        5
  333. #define MUII_PopupBack       6
  334. #define MUII_SelectedBack    7
  335. #define MUII_ListCursor      8
  336. #define MUII_ListSelect      9
  337. #define MUII_ListSelCur     10
  338. #define MUII_ArrowUp        11
  339. #define MUII_ArrowDown      12
  340. #define MUII_ArrowLeft      13
  341. #define MUII_ArrowRight     14
  342. #define MUII_CheckMark      15
  343. #define MUII_RadioButton    16
  344. #define MUII_Cycle          17
  345. #define MUII_PopUp          18
  346. #define MUII_PopFile        19
  347. #define MUII_PopDrawer      20
  348. #define MUII_PropKnob       21
  349. #define MUII_Drawer         22
  350. #define MUII_HardDisk       23
  351. #define MUII_Disk           24
  352. #define MUII_Chip           25
  353. #define MUII_Volume         26
  354. #define MUII_RegisterBack   27
  355. #define MUII_Network        28
  356. #define MUII_Assign         29
  357. #define MUII_TapePlay       30
  358. #define MUII_TapePlayBack   31
  359. #define MUII_TapePause      32
  360. #define MUII_TapeStop       33
  361. #define MUII_TapeRecord     34
  362. #define MUII_GroupBack      35
  363. #define MUII_SliderBack     36
  364. #define MUII_SliderKnob     37
  365. #define MUII_TapeUp         38
  366. #define MUII_TapeDown       39
  367. #define MUII_PageBack       40
  368. #define MUII_ReadListBack   41
  369. #define MUII_Count          42
  370.  
  371. #define MUII_BACKGROUND     128    /* These are direct color    */
  372. #define MUII_SHADOW         129    /* combinations and are not  */
  373. #define MUII_SHINE          130    /* affected by users prefs.  */
  374. #define MUII_FILL           131
  375. #define MUII_SHADOWBACK     132    /* Generally, you should     */
  376. #define MUII_SHADOWFILL     133    /* avoid using them. Better  */
  377. #define MUII_SHADOWSHINE    134    /* use one of the customized */
  378. #define MUII_FILLBACK       135    /* images above.             */
  379. #define MUII_FILLSHINE      136
  380. #define MUII_SHINEBACK      137
  381. #define MUII_FILLBACK2      138
  382. #define MUII_HSHINEBACK     139
  383. #define MUII_HSHADOWBACK    140
  384. #define MUII_HSHINESHINE    141
  385. #define MUII_HSHADOWSHADOW  142
  386. #define MUII_MARKSHINE      143
  387. #define MUII_MARKHALFSHINE  144
  388. #define MUII_MARKBACKGROUND 145
  389. #define MUII_LASTPAT        145
  390.  
  391.  
  392.  
  393. /***************************************************************************
  394. ** Special values for some methods
  395. ***************************************************************************/
  396.  
  397. #define MUIV_TriggerValue    0x49893131
  398. #define MUIV_NotTriggerValue 0x49893133
  399. #define MUIV_EveryTime       0x49893131
  400.  
  401. #define MUIV_Notify_Self        1
  402. #define MUIV_Notify_Window      2
  403. #define MUIV_Notify_Application 3
  404. #define MUIV_Notify_Parent      4
  405.  
  406. #define MUIV_Application_Save_ENV     ((STRPTR) 0)
  407. #define MUIV_Application_Save_ENVARC  ((STRPTR)~0)
  408. #define MUIV_Application_Load_ENV     ((STRPTR) 0)
  409. #define MUIV_Application_Load_ENVARC  ((STRPTR)~0)
  410.  
  411. #define MUIV_Application_ReturnID_Quit -1
  412.  
  413. #define MUIV_List_Insert_Top             0
  414. #define MUIV_List_Insert_Active         -1
  415. #define MUIV_List_Insert_Sorted         -2
  416. #define MUIV_List_Insert_Bottom         -3
  417.  
  418. #define MUIV_List_Remove_First           0
  419. #define MUIV_List_Remove_Active         -1
  420. #define MUIV_List_Remove_Last           -2
  421. #define MUIV_List_Remove_Selected       -3
  422.  
  423. #define MUIV_List_Select_Off             0
  424. #define MUIV_List_Select_On              1
  425. #define MUIV_List_Select_Toggle          2
  426. #define MUIV_List_Select_Ask             3
  427.  
  428. #define MUIV_List_GetEntry_Active       -1
  429. #define MUIV_List_Select_Active         -1
  430. #define MUIV_List_Select_All            -2
  431.  
  432. #define MUIV_List_Redraw_Active         -1
  433. #define MUIV_List_Redraw_All            -2
  434.  
  435. #define MUIV_List_Move_Top               0
  436. #define MUIV_List_Move_Active           -1
  437. #define MUIV_List_Move_Bottom           -2
  438. #define MUIV_List_Move_Next             -3 /* only valid for second parameter */
  439. #define MUIV_List_Move_Previous         -4 /* only valid for second parameter */
  440.  
  441. #define MUIV_List_Exchange_Top           0
  442. #define MUIV_List_Exchange_Active       -1
  443. #define MUIV_List_Exchange_Bottom       -2
  444. #define MUIV_List_Exchange_Next         -3 /* only valid for second parameter */
  445. #define MUIV_List_Exchange_Previous     -4 /* only valid for second parameter */
  446.  
  447. #define MUIV_List_Jump_Top               0
  448. #define MUIV_List_Jump_Active           -1
  449. #define MUIV_List_Jump_Bottom           -2
  450. #define MUIV_List_Jump_Up               -4
  451. #define MUIV_List_Jump_Down             -3
  452.  
  453. #define MUIV_List_NextSelected_Start    -1
  454. #define MUIV_List_NextSelected_End      -1
  455.  
  456. #define MUIV_DragQuery_Refuse 0
  457. #define MUIV_DragQuery_Accept 1
  458.  
  459. #define MUIV_DragReport_Abort    0
  460. #define MUIV_DragReport_Continue 1
  461. #define MUIV_DragReport_Lock     2
  462. #define MUIV_DragReport_Refresh  3
  463.  
  464.  
  465.  
  466. /***************************************************************************
  467. ** Control codes for text strings
  468. ***************************************************************************/
  469.  
  470. #define MUIX_R "\033r"    /* right justified */
  471. #define MUIX_C "\033c"    /* centered        */
  472. #define MUIX_L "\033l"    /* left justified  */
  473.  
  474. #define MUIX_N "\033n"    /* normal     */
  475. #define MUIX_B "\033b"    /* bold       */
  476. #define MUIX_I "\033i"    /* italic     */
  477. #define MUIX_U "\033u"    /* underlined */
  478.  
  479. #define MUIX_PT "\0332"   /* text pen           */
  480. #define MUIX_PH "\0338"   /* highlight text pen */
  481.  
  482.  
  483.  
  484. /***************************************************************************
  485. ** Parameter structures for some classes
  486. ***************************************************************************/
  487.  
  488. struct MUI_Palette_Entry
  489. {
  490.     LONG  mpe_ID;
  491.     ULONG mpe_Red;
  492.     ULONG mpe_Green;
  493.     ULONG mpe_Blue;
  494.     LONG  mpe_Group;
  495. };
  496.  
  497. #define MUIV_Palette_Entry_End -1
  498.  
  499.  
  500. /*****************************/
  501. /* Application Input Handler */
  502. /*****************************/
  503.  
  504. struct MUI_InputHandlerNode
  505. {
  506.     struct MinNode ihn_Node;
  507.     Object        *ihn_Object;
  508.  
  509.     union
  510.     {
  511.         ULONG ihn_sigs;
  512.         struct
  513.         {
  514.             UWORD ihn_millis;
  515.             UWORD ihn_current;
  516.         } ihn_timer;
  517.     }
  518.     ihn_stuff;
  519.  
  520.     ULONG          ihn_Flags; /* see below */
  521.     ULONG          ihn_Method;
  522. };
  523.  
  524. #define ihn_Signals ihn_stuff.ihn_sigs
  525. #define ihn_Millis  ihn_stuff.ihn_timer.ihn_millis
  526. #define ihn_Current ihn_stuff.ihn_timer.ihn_current
  527.  
  528. /* Flags for ihn_Flags */
  529. #define MUIIHNF_TIMER (1<<0) /* set ihn_Ticks to number of 1/100 sec ticks you want to be triggered */
  530.  
  531.  
  532. /************************/
  533. /* Window Event Handler */
  534. /************************/
  535.  
  536. struct MUI_EventHandlerNode
  537. {
  538.     struct MinNode ehn_Node;
  539.     BYTE           ehn_Reserved; /* don't touch! */
  540.     BYTE           ehn_Priority; /* event handlers are inserted according to their priority. */
  541.     UWORD          ehn_Flags;    /* certain flags, see below for definitions. */
  542.     Object        *ehn_Object;   /* object which should receive MUIM_HandleEvent. */
  543.     struct IClass *ehn_Class;    /* if !=NULL, MUIM_HandleEvent is invoked on exactly this class with CoerceMethod(). */
  544.     ULONG          ehn_Events;   /* one or more IDCMP flags this handler should react on. */
  545. };
  546.  
  547. /* flags for ehn_Flags */
  548. #define MUI_EHF_ALWAYSKEYS (1<<0)
  549.  
  550. /* other values reserved for future use */
  551.  
  552. /* return values for MUIM_HandleEvent (bit-masked, all other bits must be 0) */
  553. #define MUI_EventHandlerRC_Eat (1<<0) /* stop MUI from calling other handlers */
  554.  
  555.  
  556. /**********************/
  557. /* List Position Test */
  558. /**********************/
  559.  
  560. struct MUI_List_TestPos_Result
  561. {
  562.     LONG  entry;   /* number of entry, -1 if mouse not over valid entry */
  563.     WORD  column;  /* numer of column, -1 if no valid column */
  564.     UWORD flags;   /* see below */
  565.     WORD  xoffset; /* x offset of mouse click relative to column start */
  566.     WORD  yoffset; /* y offset of mouse click from center of line
  567.                       (negative values mean click was above center,
  568.                        positive values mean click was below center) */
  569. };
  570.  
  571. #define MUI_LPR_ABOVE  (1<<0)
  572. #define MUI_LPR_BELOW  (1<<1)
  573. #define MUI_LPR_LEFT   (1<<2)
  574. #define MUI_LPR_RIGHT  (1<<3)
  575.  
  576.  
  577. /***************************************************************************
  578. **
  579. ** Macro Section
  580. ** -------------
  581. **
  582. ** To make GUI creation more easy and understandable, you can use the
  583. ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
  584. ** them.
  585. **
  586. ** These macros are available to C programmers only.
  587. **
  588. ***************************************************************************/
  589.  
  590. #ifndef MUI_NOSHORTCUTS
  591.  
  592.  
  593.  
  594. /***************************************************************************
  595. **
  596. ** Object Generation
  597. ** -----------------
  598. **
  599. ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
  600. ** Every xxxObject can be followed by tagitems specifying initial create
  601. ** time attributes for the new object and must be terminated with the
  602. ** End macro:
  603. **
  604. ** obj = StringObject,
  605. **          MUIA_String_Contents, "foo",
  606. **          MUIA_String_MaxLen  , 40,
  607. **          End;
  608. **
  609. ** With the Child, SubWindow and WindowContents shortcuts you can
  610. ** construct a complete GUI within one command:
  611. **
  612. ** app = ApplicationObject,
  613. **
  614. **          ...
  615. **
  616. **          SubWindow, WindowObject,
  617. **             WindowContents, VGroup,
  618. **                Child, String("foo",40),
  619. **                Child, String("bar",50),
  620. **                Child, HGroup,
  621. **                   Child, CheckMark(TRUE),
  622. **                   Child, CheckMark(FALSE),
  623. **                   End,
  624. **                End,
  625. **             End,
  626. **
  627. **          SubWindow, WindowObject,
  628. **             WindowContents, HGroup,
  629. **                Child, ...,
  630. **                Child, ...,
  631. **                End,
  632. **             End,
  633. **
  634. **          ...
  635. **
  636. **          End;
  637. **
  638. ***************************************************************************/
  639.  
  640. #define MenustripObject     MUI_NewObject(MUIC_Menustrip
  641. #define MenuObject          MUI_NewObject(MUIC_Menu
  642. #define MenuObjectT(name)   MUI_NewObject(MUIC_Menu,MUIA_Menu_Title,name
  643. #define MenuitemObject      MUI_NewObject(MUIC_Menuitem
  644. #define WindowObject        MUI_NewObject(MUIC_Window
  645. #define ImageObject         MUI_NewObject(MUIC_Image
  646. #define BitmapObject        MUI_NewObject(MUIC_Bitmap
  647. #define BodychunkObject     MUI_NewObject(MUIC_Bodychunk
  648. #define NotifyObject        MUI_NewObject(MUIC_Notify
  649. #define ApplicationObject   MUI_NewObject(MUIC_Application
  650. #define TextObject          MUI_NewObject(MUIC_Text
  651. #define RectangleObject     MUI_NewObject(MUIC_Rectangle
  652. #define BalanceObject       MUI_NewObject(MUIC_Balance
  653. #define ListObject          MUI_NewObject(MUIC_List
  654. #define PropObject          MUI_NewObject(MUIC_Prop
  655. #define StringObject        MUI_NewObject(MUIC_String
  656. #define ScrollbarObject     MUI_NewObject(MUIC_Scrollbar
  657. #define ListviewObject      MUI_NewObject(MUIC_Listview
  658. #define RadioObject         MUI_NewObject(MUIC_Radio
  659. #define VolumelistObject    MUI_NewObject(MUIC_Volumelist
  660. #define FloattextObject     MUI_NewObject(MUIC_Floattext
  661. #define DirlistObject       MUI_NewObject(MUIC_Dirlist
  662. #define CycleObject         MUI_NewObject(MUIC_Cycle
  663. #define GaugeObject         MUI_NewObject(MUIC_Gauge
  664. #define ScaleObject         MUI_NewObject(MUIC_Scale
  665. #define NumericObject       MUI_NewObject(MUIC_Numeric
  666. #define SliderObject        MUI_NewObject(MUIC_Slider
  667. #define NumericbuttonObject MUI_NewObject(MUIC_Numericbutton
  668. #define KnobObject          MUI_NewObject(MUIC_Knob
  669. #define LevelmeterObject    MUI_NewObject(MUIC_Levelmeter
  670. #define BoopsiObject        MUI_NewObject(MUIC_Boopsi
  671. #define ColorfieldObject    MUI_NewObject(MUIC_Colorfield
  672. #define PenadjustObject     MUI_NewObject(MUIC_Penadjust
  673. #define ColoradjustObject   MUI_NewObject(MUIC_Coloradjust
  674. #define PaletteObject       MUI_NewObject(MUIC_Palette
  675. #define GroupObject         MUI_NewObject(MUIC_Group
  676. #define RegisterObject      MUI_NewObject(MUIC_Register
  677. #define VirtgroupObject     MUI_NewObject(MUIC_Virtgroup
  678. #define ScrollgroupObject   MUI_NewObject(MUIC_Scrollgroup
  679. #define PopstringObject     MUI_NewObject(MUIC_Popstring
  680. #define PopobjectObject     MUI_NewObject(MUIC_Popobject
  681. #define PoplistObject       MUI_NewObject(MUIC_Poplist
  682. #define PopaslObject        MUI_NewObject(MUIC_Popasl
  683. #define PendisplayObject    MUI_NewObject(MUIC_Pendisplay
  684. #define PoppenObject        MUI_NewObject(MUIC_Poppen
  685. #define AboutmuiObject      MUI_NewObject(MUIC_Aboutmui
  686. #define ScrmodelistObject   MUI_NewObject(MUIC_Scrmodelist
  687. #define KeyentryObject      MUI_NewObject(MUIC_Keyentry
  688. #define VGroup              MUI_NewObject(MUIC_Group
  689. #define HGroup              MUI_NewObject(MUIC_Group,MUIA_Group_Horiz,TRUE
  690. #define ColGroup(cols)      MUI_NewObject(MUIC_Group,MUIA_Group_Columns,(cols)
  691. #define RowGroup(rows)      MUI_NewObject(MUIC_Group,MUIA_Group_Rows   ,(rows)
  692. #define PageGroup           MUI_NewObject(MUIC_Group,MUIA_Group_PageMode,TRUE
  693. #define VGroupV             MUI_NewObject(MUIC_Virtgroup
  694. #define HGroupV             MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Horiz,TRUE
  695. #define ColGroupV(cols)     MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Columns,(cols)
  696. #define RowGroupV(rows)     MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Rows   ,(rows)
  697. #define PageGroupV          MUI_NewObject(MUIC_Virtgroup,MUIA_Group_PageMode,TRUE
  698. #define RegisterGroup(t)    MUI_NewObject(MUIC_Register,MUIA_Register_Titles,(t)
  699. #define End                 TAG_DONE)
  700.  
  701. #define Child             MUIA_Group_Child
  702. #define SubWindow         MUIA_Application_Window
  703. #define WindowContents    MUIA_Window_RootObject
  704.  
  705.  
  706.  
  707. /***************************************************************************
  708. **
  709. ** Frame Types
  710. ** -----------
  711. **
  712. ** These macros may be used to specify one of MUI's different frame types.
  713. ** Note that every macro consists of one { ti_Tag, ti_Data } pair.
  714. **
  715. ** GroupFrameT() is a special kind of frame that contains a centered
  716. ** title text.
  717. **
  718. ** HGroup, GroupFrameT("Horiz Groups"),
  719. **    Child, RectangleObject, TextFrame  , End,
  720. **    Child, RectangleObject, StringFrame, End,
  721. **    Child, RectangleObject, ButtonFrame, End,
  722. **    Child, RectangleObject, ListFrame  , End,
  723. **    End,
  724. **
  725. ***************************************************************************/
  726.  
  727. #define NoFrame          MUIA_Frame, MUIV_Frame_None
  728. #define ButtonFrame      MUIA_Frame, MUIV_Frame_Button
  729. #define ImageButtonFrame MUIA_Frame, MUIV_Frame_ImageButton
  730. #define TextFrame        MUIA_Frame, MUIV_Frame_Text
  731. #define StringFrame      MUIA_Frame, MUIV_Frame_String
  732. #define ReadListFrame    MUIA_Frame, MUIV_Frame_ReadList
  733. #define InputListFrame   MUIA_Frame, MUIV_Frame_InputList
  734. #define PropFrame        MUIA_Frame, MUIV_Frame_Prop
  735. #define SliderFrame      MUIA_Frame, MUIV_Frame_Slider
  736. #define GaugeFrame       MUIA_Frame, MUIV_Frame_Gauge
  737. #define VirtualFrame     MUIA_Frame, MUIV_Frame_Virtual
  738. #define GroupFrame       MUIA_Frame, MUIV_Frame_Group
  739. #define GroupFrameT(s)   MUIA_Frame, MUIV_Frame_Group, MUIA_FrameTitle, s, MUIA_Background, MUII_GroupBack
  740.  
  741.  
  742.  
  743. /***************************************************************************
  744. **
  745. ** Spacing Macros
  746. ** --------------
  747. **
  748. ***************************************************************************/
  749.  
  750. #define HVSpace           MUI_NewObject(MUIC_Rectangle,TAG_DONE)
  751. #define HSpace(x)         MUI_MakeObject(MUIO_HSpace,x)
  752. #define VSpace(x)         MUI_MakeObject(MUIO_VSpace,x)
  753. #define HCenter(obj)      (HGroup, GroupSpacing(0), Child, HSpace(0), Child, (obj), Child, HSpace(0), End)
  754. #define VCenter(obj)      (VGroup, GroupSpacing(0), Child, VSpace(0), Child, (obj), Child, VSpace(0), End)
  755. #define InnerSpacing(h,v) MUIA_InnerLeft,(h),MUIA_InnerRight,(h),MUIA_InnerTop,(v),MUIA_InnerBottom,(v)
  756. #define GroupSpacing(x)   MUIA_Group_Spacing,x
  757.  
  758.  
  759.  
  760. #ifdef MUI_OBSOLETE
  761.  
  762. /***************************************************************************
  763. **
  764. ** String-Object
  765. ** -------------
  766. **
  767. ** The following macro creates a simple string gadget.
  768. **
  769. ***************************************************************************/
  770.  
  771. #define String(contents,maxlen)\
  772.     StringObject,\
  773.         StringFrame,\
  774.         MUIA_String_MaxLen  , maxlen,\
  775.         MUIA_String_Contents, contents,\
  776.         End
  777.  
  778. #define KeyString(contents,maxlen,controlchar)\
  779.     StringObject,\
  780.         StringFrame,\
  781.         MUIA_ControlChar    , controlchar,\
  782.         MUIA_String_MaxLen  , maxlen,\
  783.         MUIA_String_Contents, contents,\
  784.         End
  785.  
  786. #endif
  787.  
  788.  
  789.  
  790. #ifdef MUI_OBSOLETE
  791.  
  792. /***************************************************************************
  793. **
  794. ** CheckMark-Object
  795. ** ----------------
  796. **
  797. ** The following macro creates a checkmark gadget.
  798. **
  799. ***************************************************************************/
  800.  
  801. #define CheckMark(selected)\
  802.     ImageObject,\
  803.         ImageButtonFrame,\
  804.         MUIA_InputMode        , MUIV_InputMode_Toggle,\
  805.         MUIA_Image_Spec       , MUII_CheckMark,\
  806.         MUIA_Image_FreeVert   , TRUE,\
  807.         MUIA_Selected         , selected,\
  808.         MUIA_Background       , MUII_ButtonBack,\
  809.         MUIA_ShowSelState     , FALSE,\
  810.         End
  811.  
  812. #define KeyCheckMark(selected,control)\
  813.     ImageObject,\
  814.         ImageButtonFrame,\
  815.         MUIA_InputMode        , MUIV_InputMode_Toggle,\
  816.         MUIA_Image_Spec       , MUII_CheckMark,\
  817.         MUIA_Image_FreeVert   , TRUE,\
  818.         MUIA_Selected         , selected,\
  819.         MUIA_Background       , MUII_ButtonBack,\
  820.         MUIA_ShowSelState     , FALSE,\
  821.         MUIA_ControlChar      , control,\
  822.         End
  823.  
  824. #endif
  825.  
  826.  
  827. /***************************************************************************
  828. **
  829. ** Button-Objects
  830. ** --------------
  831. **
  832. ** Note: Use small letters for KeyButtons, e.g.
  833. **       KeyButton("Cancel",'c')  and not  KeyButton("Cancel",'C') !!
  834. **
  835. ***************************************************************************/
  836.  
  837. #define SimpleButton(label) MUI_MakeObject(MUIO_Button,label)
  838.  
  839. #ifdef MUI_OBSOLETE
  840.  
  841. #define KeyButton(name,key)\
  842.     TextObject,\
  843.         ButtonFrame,\
  844.         MUIA_Text_Contents, name,\
  845.         MUIA_Text_PreParse, "\33c",\
  846.         MUIA_Text_HiChar  , key,\
  847.         MUIA_ControlChar  , key,\
  848.         MUIA_InputMode    , MUIV_InputMode_RelVerify,\
  849.         MUIA_Background   , MUII_ButtonBack,\
  850.         End
  851.  
  852. #endif
  853.  
  854.  
  855. #ifdef MUI_OBSOLETE
  856.  
  857. /***************************************************************************
  858. **
  859. ** Cycle-Object
  860. ** ------------
  861. **
  862. ***************************************************************************/
  863.  
  864. #define Cycle(entries)        CycleObject, MUIA_Cycle_Entries, entries, End
  865. #define KeyCycle(entries,key) CycleObject, MUIA_Cycle_Entries, entries, MUIA_ControlChar, key, End
  866.  
  867.  
  868.  
  869. /***************************************************************************
  870. **
  871. ** Radio-Object
  872. ** ------------
  873. **
  874. ***************************************************************************/
  875.  
  876. #define Radio(name,array)\
  877.     RadioObject,\
  878.         GroupFrameT(name),\
  879.         MUIA_Radio_Entries,array,\
  880.         End
  881.  
  882. #define KeyRadio(name,array,key)\
  883.     RadioObject,\
  884.         GroupFrameT(name),\
  885.         MUIA_Radio_Entries,array,\
  886.         MUIA_ControlChar, key,\
  887.         End
  888.  
  889.  
  890.  
  891. /***************************************************************************
  892. **
  893. ** Slider-Object
  894. ** -------------
  895. **
  896. ***************************************************************************/
  897.  
  898.  
  899. #define Slider(min,max,level)\
  900.     SliderObject,\
  901.         MUIA_Numeric_Min  , min,\
  902.         MUIA_Numeric_Max  , max,\
  903.         MUIA_Numeric_Value, level,\
  904.         End
  905.  
  906. #define KeySlider(min,max,level,key)\
  907.     SliderObject,\
  908.         MUIA_Numeric_Min  , min,\
  909.         MUIA_Numeric_Max  , max,\
  910.         MUIA_Numeric_Value, level,\
  911.         MUIA_ControlChar , key,\
  912.         End
  913.  
  914. #endif
  915.  
  916.  
  917.  
  918. /***************************************************************************
  919. **
  920. ** Button to be used for popup objects
  921. **
  922. ***************************************************************************/
  923.  
  924. #define PopButton(img) MUI_MakeObject(MUIO_PopButton,img)
  925.  
  926.  
  927.  
  928. /***************************************************************************
  929. **
  930. ** Labeling Objects
  931. ** ----------------
  932. **
  933. ** Labeling objects, e.g. a group of string gadgets,
  934. **
  935. **   Small: |foo   |
  936. **  Normal: |bar   |
  937. **     Big: |foobar|
  938. **    Huge: |barfoo|
  939. **
  940. ** is done using a 2 column group:
  941. **
  942. ** ColGroup(2),
  943. **     Child, Label2("Small:" ),
  944. **    Child, StringObject, End,
  945. **     Child, Label2("Normal:"),
  946. **    Child, StringObject, End,
  947. **     Child, Label2("Big:"   ),
  948. **    Child, StringObject, End,
  949. **     Child, Label2("Huge:"  ),
  950. **    Child, StringObject, End,
  951. **    End,
  952. **
  953. ** Note that we have three versions of the label macro, depending on
  954. ** the frame type of the right hand object:
  955. **
  956. ** Label1(): For use with standard frames (e.g. checkmarks).
  957. ** Label2(): For use with double high frames (e.g. string gadgets).
  958. ** Label() : For use with objects without a frame.
  959. **
  960. ** These macros ensure that your label will look fine even if the
  961. ** user of your application configured some strange spacing values.
  962. ** If you want to use your own labeling, you'll have to pay attention
  963. ** on this topic yourself.
  964. **
  965. ***************************************************************************/
  966.  
  967. #define Label(label)   MUI_MakeObject(MUIO_Label,label,0)
  968. #define Label1(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame)
  969. #define Label2(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame)
  970. #define LLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned)
  971. #define LLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
  972. #define LLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
  973. #define CLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered)
  974. #define CLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame)
  975. #define CLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame)
  976.  
  977. #define FreeLabel(label)   MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert)
  978. #define FreeLabel1(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame)
  979. #define FreeLabel2(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame)
  980. #define FreeLLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned)
  981. #define FreeLLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
  982. #define FreeLLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
  983. #define FreeCLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered)
  984. #define FreeCLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame)
  985. #define FreeCLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame)
  986.  
  987. #define KeyLabel(label,key)   MUI_MakeObject(MUIO_Label,label,key)
  988. #define KeyLabel1(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame|(key))
  989. #define KeyLabel2(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame|(key))
  990. #define KeyLLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|(key))
  991. #define KeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
  992. #define KeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
  993. #define KeyCLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|(key))
  994. #define KeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
  995. #define KeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
  996.  
  997. #define FreeKeyLabel(label,key)   MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|(key))
  998. #define FreeKeyLabel1(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame|(key))
  999. #define FreeKeyLabel2(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame|(key))
  1000. #define FreeKeyLLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|(key))
  1001. #define FreeKeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
  1002. #define FreeKeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
  1003. #define FreeKeyCLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|(key))
  1004. #define FreeKeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
  1005. #define FreeKeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
  1006.  
  1007.  
  1008.  
  1009. /***************************************************************************
  1010. **
  1011. ** Controlling Objects
  1012. ** -------------------
  1013. **
  1014. ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
  1015. ** calls:
  1016. **
  1017. ** {
  1018. **    char *x;
  1019. **
  1020. **    set(obj,MUIA_String_Contents,"foobar");
  1021. **    get(obj,MUIA_String_Contents,&x);
  1022. **
  1023. **    printf("gadget contains '%s'\n",x);
  1024. ** }
  1025. **
  1026. ** nnset() sets an attribute without triggering a possible notification.
  1027. **
  1028. ***************************************************************************/
  1029.  
  1030. #ifndef __cplusplus
  1031.  
  1032. #define get(obj,attr,store) GetAttr(attr,obj,(ULONG *)store)
  1033. #define set(obj,attr,value) SetAttrs(obj,attr,value,TAG_DONE)
  1034. #define nnset(obj,attr,value) SetAttrs(obj,MUIA_NoNotify,TRUE,attr,value,TAG_DONE)
  1035.  
  1036. #define setmutex(obj,n)     set(obj,MUIA_Radio_Active,n)
  1037. #define setcycle(obj,n)     set(obj,MUIA_Cycle_Active,n)
  1038. #define setstring(obj,s)    set(obj,MUIA_String_Contents,s)
  1039. #define setcheckmark(obj,b) set(obj,MUIA_Selected,b)
  1040. #define setslider(obj,l)    set(obj,MUIA_Numeric_Value,l)
  1041.  
  1042. #endif
  1043.  
  1044.  
  1045. #endif /* MUI_NOSHORTCUTS */
  1046.  
  1047.  
  1048. /***************************************************************************
  1049. **
  1050. ** For Boopsi Image Implementors Only:
  1051. **
  1052. ** If MUI is using a boopsi image object, it will send a special method
  1053. ** immediately after object creation. This method has a parameter structure
  1054. ** where the boopsi can fill in its minimum and maximum size and learn if
  1055. ** its used in a horizontal or vertical context.
  1056. **
  1057. ** The boopsi image must use the method id (MUIM_BoopsiQuery) as return
  1058. ** value. That's how MUI sees that the method is implemented.
  1059. **
  1060. ** Note: MUI does not depend on this method. If the boopsi image doesn't
  1061. **       implement it, minimum size will be 0 and maximum size unlimited.
  1062. **
  1063. ***************************************************************************/
  1064.  
  1065. #define MUIM_BoopsiQuery 0x80427157 /* this is send to the boopsi and */
  1066.                                     /* must be used as return value   */
  1067.  
  1068. struct MUI_BoopsiQuery              /* parameter structure */
  1069. {
  1070.     ULONG mbq_MethodID;              /* always MUIM_BoopsiQuery */
  1071.  
  1072.     struct Screen *mbq_Screen;       /* obsolete, use mbq_RenderInfo */
  1073.     ULONG mbq_Flags;                 /* read only, see below */
  1074.  
  1075.     LONG mbq_MinWidth ;              /* write only, fill in min width  */
  1076.     LONG mbq_MinHeight;              /* write only, fill in min height */
  1077.     LONG mbq_MaxWidth ;              /* write only, fill in max width  */
  1078.     LONG mbq_MaxHeight;              /* write only, fill in max height */
  1079.     LONG mbq_DefWidth ;              /* write only, fill in def width  */
  1080.     LONG mbq_DefHeight;              /* write only, fill in def height */
  1081.  
  1082.     struct MUI_RenderInfo *mbq_RenderInfo;  /* read only, display context */
  1083.  
  1084.     /* may grow in future ... */
  1085. };
  1086.  
  1087. #define MUIP_BoopsiQuery MUI_BoopsiQuery  /* old structure name */
  1088.  
  1089. #define MBQF_HORIZ (1<<0)           /* object used in a horizontal */
  1090.                                     /* context (else vertical)     */
  1091.  
  1092. #define MBQ_MUI_MAXMAX (10000)          /* use this for unlimited MaxWidth/Height */
  1093.  
  1094.  
  1095. /*******************************************/
  1096. /* Begin of automatic header file creation */
  1097. /*******************************************/
  1098.  
  1099.  
  1100.  
  1101.  
  1102. /****************************************************************************/
  1103. /** Notify                                                                 **/
  1104. /****************************************************************************/
  1105.  
  1106. #ifdef _DCC
  1107. extern char MUIC_Notify[];
  1108. #else
  1109. #define MUIC_Notify "Notify.mui"
  1110. #endif
  1111.  
  1112. /* Methods */
  1113.  
  1114. #define MUIM_CallHook                       0x8042b96b /* V4  */
  1115. #define MUIM_Export                         0x80420f1c /* V12 */
  1116. #define MUIM_FindUData                      0x8042c196 /* V8  */
  1117. #define MUIM_GetConfigItem                  0x80423edb /* V11 */
  1118. #define MUIM_GetUData                       0x8042ed0c /* V8  */
  1119. #define MUIM_Import                         0x8042d012 /* V12 */
  1120. #define MUIM_KillNotify                     0x8042d240 /* V4  */
  1121. #define MUIM_KillNotifyObj                  0x8042b145 /* V16 */
  1122. #define MUIM_MultiSet                       0x8042d356 /* V7  */
  1123. #define MUIM_NoNotifySet                    0x8042216f /* V9  */
  1124. #define MUIM_Notify                         0x8042c9cb /* V4  */
  1125. #define MUIM_Set                            0x8042549a /* V4  */
  1126. #define MUIM_SetAsString                    0x80422590 /* V4  */
  1127. #define MUIM_SetUData                       0x8042c920 /* V8  */
  1128. #define MUIM_SetUDataOnce                   0x8042ca19 /* V11 */
  1129. #define MUIM_WriteLong                      0x80428d86 /* V6  */
  1130. #define MUIM_WriteString                    0x80424bf4 /* V6  */
  1131. struct  MUIP_CallHook                       { ULONG MethodID; struct Hook *Hook; ULONG param1; /* ... */ };
  1132. struct  MUIP_Export                         { ULONG MethodID; Object *dataspace; };
  1133. struct  MUIP_FindUData                      { ULONG MethodID; ULONG udata; };
  1134. struct  MUIP_GetConfigItem                  { ULONG MethodID; ULONG id; ULONG *storage; };
  1135. struct  MUIP_GetUData                       { ULONG MethodID; ULONG udata; ULONG attr; ULONG *storage; };
  1136. struct  MUIP_Import                         { ULONG MethodID; Object *dataspace; };
  1137. struct  MUIP_KillNotify                     { ULONG MethodID; ULONG TrigAttr; };
  1138. struct  MUIP_KillNotifyObj                  { ULONG MethodID; ULONG TrigAttr; Object *dest; };
  1139. struct  MUIP_MultiSet                       { ULONG MethodID; ULONG attr; ULONG val; APTR obj; /* ... */ };
  1140. struct  MUIP_NoNotifySet                    { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
  1141. struct  MUIP_Notify                         { ULONG MethodID; ULONG TrigAttr; ULONG TrigVal; APTR DestObj; ULONG FollowParams; /* ... */ };
  1142. struct  MUIP_Set                            { ULONG MethodID; ULONG attr; ULONG val; };
  1143. struct  MUIP_SetAsString                    { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
  1144. struct  MUIP_SetUData                       { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
  1145. struct  MUIP_SetUDataOnce                   { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
  1146. struct  MUIP_WriteLong                      { ULONG MethodID; ULONG val; ULONG *memory; };
  1147. struct  MUIP_WriteString                    { ULONG MethodID; char *str; char *memory; };
  1148.  
  1149. /* Attributes */
  1150.  
  1151. #define MUIA_ApplicationObject              0x8042d3ee /* V4  ..g Object *          */
  1152. #define MUIA_AppMessage                     0x80421955 /* V5  ..g struct AppMessage * */
  1153. #define MUIA_HelpLine                       0x8042a825 /* V4  isg LONG              */
  1154. #define MUIA_HelpNode                       0x80420b85 /* V4  isg STRPTR            */
  1155. #define MUIA_NoNotify                       0x804237f9 /* V7  .s. BOOL              */
  1156. #define MUIA_ObjectID                       0x8042d76e /* V11 isg ULONG             */
  1157. #define MUIA_Parent                         0x8042e35f /* V11 ..g Object *          */
  1158. #define MUIA_Revision                       0x80427eaa /* V4  ..g LONG              */
  1159. #define MUIA_UserData                       0x80420313 /* V4  isg ULONG             */
  1160. #define MUIA_Version                        0x80422301 /* V4  ..g LONG              */
  1161.  
  1162.  
  1163.  
  1164. /****************************************************************************/
  1165. /** Family                                                                 **/
  1166. /****************************************************************************/
  1167.  
  1168. #ifdef _DCC
  1169. extern char MUIC_Family[];
  1170. #else
  1171. #define MUIC_Family "Family.mui"
  1172. #endif
  1173.  
  1174. /* Methods */
  1175.  
  1176. #define MUIM_Family_AddHead                 0x8042e200 /* V8  */
  1177. #define MUIM_Family_AddTail                 0x8042d752 /* V8  */
  1178. #define MUIM_Family_Insert                  0x80424d34 /* V8  */
  1179. #define MUIM_Family_Remove                  0x8042f8a9 /* V8  */
  1180. #define MUIM_Family_Sort                    0x80421c49 /* V8  */
  1181. #define MUIM_Family_Transfer                0x8042c14a /* V8  */
  1182. struct  MUIP_Family_AddHead                 { ULONG MethodID; Object *obj; };
  1183. struct  MUIP_Family_AddTail                 { ULONG MethodID; Object *obj; };
  1184. struct  MUIP_Family_Insert                  { ULONG MethodID; Object *obj; Object *pred; };
  1185. struct  MUIP_Family_Remove                  { ULONG MethodID; Object *obj; };
  1186. struct  MUIP_Family_Sort                    { ULONG MethodID; Object *obj[1]; };
  1187. struct  MUIP_Family_Transfer                { ULONG MethodID; Object *family; };
  1188.  
  1189. /* Attributes */
  1190.  
  1191. #define MUIA_Family_Child                   0x8042c696 /* V8  i.. Object *          */
  1192. #define MUIA_Family_List                    0x80424b9e /* V8  ..g struct MinList *  */
  1193.  
  1194.  
  1195.  
  1196. /****************************************************************************/
  1197. /** Menustrip                                                              **/
  1198. /****************************************************************************/
  1199.  
  1200. #ifdef _DCC
  1201. extern char MUIC_Menustrip[];
  1202. #else
  1203. #define MUIC_Menustrip "Menustrip.mui"
  1204. #endif
  1205.  
  1206. /* Methods */
  1207.  
  1208.  
  1209. /* Attributes */
  1210.  
  1211. #define MUIA_Menustrip_Enabled              0x8042815b /* V8  isg BOOL              */
  1212.  
  1213.  
  1214.  
  1215. /****************************************************************************/
  1216. /** Menu                                                                   **/
  1217. /****************************************************************************/
  1218.  
  1219. #ifdef _DCC
  1220. extern char MUIC_Menu[];
  1221. #else
  1222. #define MUIC_Menu "Menu.mui"
  1223. #endif
  1224.  
  1225. /* Methods */
  1226.  
  1227.  
  1228. /* Attributes */
  1229.  
  1230. #define MUIA_Menu_Enabled                   0x8042ed48 /* V8  isg BOOL              */
  1231. #define MUIA_Menu_Title                     0x8042a0e3 /* V8  isg STRPTR            */
  1232.  
  1233.  
  1234.  
  1235. /****************************************************************************/
  1236. /** Menuitem                                                               **/
  1237. /****************************************************************************/
  1238.  
  1239. #ifdef _DCC
  1240. extern char MUIC_Menuitem[];
  1241. #else
  1242. #define MUIC_Menuitem "Menuitem.mui"
  1243. #endif
  1244.  
  1245. /* Methods */
  1246.  
  1247.  
  1248. /* Attributes */
  1249.  
  1250. #define MUIA_Menuitem_Checked               0x8042562a /* V8  isg BOOL              */
  1251. #define MUIA_Menuitem_Checkit               0x80425ace /* V8  isg BOOL              */
  1252. #define MUIA_Menuitem_CommandString         0x8042b9cc /* V16 isg BOOL              */
  1253. #define MUIA_Menuitem_Enabled               0x8042ae0f /* V8  isg BOOL              */
  1254. #define MUIA_Menuitem_Exclude               0x80420bc6 /* V8  isg LONG              */
  1255. #define MUIA_Menuitem_Shortcut              0x80422030 /* V8  isg STRPTR            */
  1256. #define MUIA_Menuitem_Title                 0x804218be /* V8  isg STRPTR            */
  1257. #define MUIA_Menuitem_Toggle                0x80424d5c /* V8  isg BOOL              */
  1258. #define MUIA_Menuitem_Trigger               0x80426f32 /* V8  ..g struct MenuItem * */
  1259.  
  1260. #define MUIV_Menuitem_Shortcut_Check -1
  1261.  
  1262.  
  1263. /****************************************************************************/
  1264. /** Application                                                            **/
  1265. /****************************************************************************/
  1266.  
  1267. #ifdef _DCC
  1268. extern char MUIC_Application[];
  1269. #else
  1270. #define MUIC_Application "Application.mui"
  1271. #endif
  1272.  
  1273. /* Methods */
  1274.  
  1275. #define MUIM_Application_AboutMUI           0x8042d21d /* V14 */
  1276. #define MUIM_Application_AddInputHandler    0x8042f099 /* V11 */
  1277. #define MUIM_Application_CheckRefresh       0x80424d68 /* V11 */
  1278. #ifdef MUI_OBSOLETE
  1279. #define MUIM_Application_GetMenuCheck       0x8042c0a7 /* V4  */
  1280. #endif /* MUI_OBSOLETE */
  1281. #ifdef MUI_OBSOLETE
  1282. #define MUIM_Application_GetMenuState       0x8042a58f /* V4  */
  1283. #endif /* MUI_OBSOLETE */
  1284. #ifdef MUI_OBSOLETE
  1285. #define MUIM_Application_Input              0x8042d0f5 /* V4  */
  1286. #endif /* MUI_OBSOLETE */
  1287. #define MUIM_Application_InputBuffered      0x80427e59 /* V4  */
  1288. #define MUIM_Application_Load               0x8042f90d /* V4  */
  1289. #define MUIM_Application_NewInput           0x80423ba6 /* V11 */
  1290. #define MUIM_Application_OpenConfigWindow   0x804299ba /* V11 */
  1291. #define MUIM_Application_PushMethod         0x80429ef8 /* V4  */
  1292. #define MUIM_Application_RemInputHandler    0x8042e7af /* V11 */
  1293. #define MUIM_Application_ReturnID           0x804276ef /* V4  */
  1294. #define MUIM_Application_Save               0x804227ef /* V4  */
  1295. #define MUIM_Application_SetConfigItem      0x80424a80 /* V11 */
  1296. #ifdef MUI_OBSOLETE
  1297. #define MUIM_Application_SetMenuCheck       0x8042a707 /* V4  */
  1298. #endif /* MUI_OBSOLETE */
  1299. #ifdef MUI_OBSOLETE
  1300. #define MUIM_Application_SetMenuState       0x80428bef /* V4  */
  1301. #endif /* MUI_OBSOLETE */
  1302. #define MUIM_Application_ShowHelp           0x80426479 /* V4  */
  1303. struct  MUIP_Application_AboutMUI           { ULONG MethodID; Object *refwindow; };
  1304. struct  MUIP_Application_AddInputHandler    { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
  1305. struct  MUIP_Application_CheckRefresh       { ULONG MethodID; };
  1306. struct  MUIP_Application_GetMenuCheck       { ULONG MethodID; ULONG MenuID; };
  1307. struct  MUIP_Application_GetMenuState       { ULONG MethodID; ULONG MenuID; };
  1308. struct  MUIP_Application_Input              { ULONG MethodID; LONGBITS *signal; };
  1309. struct  MUIP_Application_InputBuffered      { ULONG MethodID; };
  1310. struct  MUIP_Application_Load               { ULONG MethodID; STRPTR name; };
  1311. struct  MUIP_Application_NewInput           { ULONG MethodID; LONGBITS *signal; };
  1312. struct  MUIP_Application_OpenConfigWindow   { ULONG MethodID; ULONG flags; };
  1313. struct  MUIP_Application_PushMethod         { ULONG MethodID; Object *dest; LONG count; /* ... */ };
  1314. struct  MUIP_Application_RemInputHandler    { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
  1315. struct  MUIP_Application_ReturnID           { ULONG MethodID; ULONG retid; };
  1316. struct  MUIP_Application_Save               { ULONG MethodID; STRPTR name; };
  1317. struct  MUIP_Application_SetConfigItem      { ULONG MethodID; ULONG item; APTR data; };
  1318. struct  MUIP_Application_SetMenuCheck       { ULONG MethodID; ULONG MenuID; LONG stat; };
  1319. struct  MUIP_Application_SetMenuState       { ULONG MethodID; ULONG MenuID; LONG stat; };
  1320. struct  MUIP_Application_ShowHelp           { ULONG MethodID; Object *window; char *name; char *node; LONG line; };
  1321.  
  1322. /* Attributes */
  1323.  
  1324. #define MUIA_Application_Active             0x804260ab /* V4  isg BOOL              */
  1325. #define MUIA_Application_Author             0x80424842 /* V4  i.g STRPTR            */
  1326. #define MUIA_Application_Base               0x8042e07a /* V4  i.g STRPTR            */
  1327. #define MUIA_Application_Broker             0x8042dbce /* V4  ..g Broker *          */
  1328. #define MUIA_Application_BrokerHook         0x80428f4b /* V4  isg struct Hook *     */
  1329. #define MUIA_Application_BrokerPort         0x8042e0ad /* V6  ..g struct MsgPort *  */
  1330. #define MUIA_Application_BrokerPri          0x8042c8d0 /* V6  i.g LONG              */
  1331. #define MUIA_Application_Commands           0x80428648 /* V4  isg struct MUI_Command * */
  1332. #define MUIA_Application_Copyright          0x8042ef4d /* V4  i.g STRPTR            */
  1333. #define MUIA_Application_Description        0x80421fc6 /* V4  i.g STRPTR            */
  1334. #define MUIA_Application_DiskObject         0x804235cb /* V4  isg struct DiskObject * */
  1335. #define MUIA_Application_DoubleStart        0x80423bc6 /* V4  ..g BOOL              */
  1336. #define MUIA_Application_DropObject         0x80421266 /* V5  is. Object *          */
  1337. #define MUIA_Application_ForceQuit          0x804257df /* V8  ..g BOOL              */
  1338. #define MUIA_Application_HelpFile           0x804293f4 /* V8  isg STRPTR            */
  1339. #define MUIA_Application_Iconified          0x8042a07f /* V4  .sg BOOL              */
  1340. #ifdef MUI_OBSOLETE
  1341. #define MUIA_Application_Menu               0x80420e1f /* V4  i.g struct NewMenu *  */
  1342. #endif /* MUI_OBSOLETE */
  1343. #define MUIA_Application_MenuAction         0x80428961 /* V4  ..g ULONG             */
  1344. #define MUIA_Application_MenuHelp           0x8042540b /* V4  ..g ULONG             */
  1345. #define MUIA_Application_Menustrip          0x804252d9 /* V8  i.. Object *          */
  1346. #define MUIA_Application_RexxHook           0x80427c42 /* V7  isg struct Hook *     */
  1347. #define MUIA_Application_RexxMsg            0x8042fd88 /* V4  ..g struct RxMsg *    */
  1348. #define MUIA_Application_RexxString         0x8042d711 /* V4  .s. STRPTR            */
  1349. #define MUIA_Application_SingleTask         0x8042a2c8 /* V4  i.. BOOL              */
  1350. #define MUIA_Application_Sleep              0x80425711 /* V4  .s. BOOL              */
  1351. #define MUIA_Application_Title              0x804281b8 /* V4  i.g STRPTR            */
  1352. #define MUIA_Application_UseCommodities     0x80425ee5 /* V10 i.. BOOL              */
  1353. #define MUIA_Application_UseRexx            0x80422387 /* V10 i.. BOOL              */
  1354. #define MUIA_Application_Version            0x8042b33f /* V4  i.g STRPTR            */
  1355. #define MUIA_Application_Window             0x8042bfe0 /* V4  i.. Object *          */
  1356. #define MUIA_Application_WindowList         0x80429abe /* V13 ..g struct List *     */
  1357.  
  1358.  
  1359.  
  1360. /****************************************************************************/
  1361. /** Window                                                                 **/
  1362. /****************************************************************************/
  1363.  
  1364. #ifdef _DCC
  1365. extern char MUIC_Window[];
  1366. #else
  1367. #define MUIC_Window "Window.mui"
  1368. #endif
  1369.  
  1370. /* Methods */
  1371.  
  1372. #define MUIM_Window_AddEventHandler         0x804203b7 /* V16 */
  1373. #ifdef MUI_OBSOLETE
  1374. #define MUIM_Window_GetMenuCheck            0x80420414 /* V4  */
  1375. #endif /* MUI_OBSOLETE */
  1376. #ifdef MUI_OBSOLETE
  1377. #define MUIM_Window_GetMenuState            0x80420d2f /* V4  */
  1378. #endif /* MUI_OBSOLETE */
  1379. #define MUIM_Window_RemEventHandler         0x8042679e /* V16 */
  1380. #define MUIM_Window_ScreenToBack            0x8042913d /* V4  */
  1381. #define MUIM_Window_ScreenToFront           0x804227a4 /* V4  */
  1382. #ifdef MUI_OBSOLETE
  1383. #define MUIM_Window_SetCycleChain           0x80426510 /* V4  */
  1384. #endif /* MUI_OBSOLETE */
  1385. #ifdef MUI_OBSOLETE
  1386. #define MUIM_Window_SetMenuCheck            0x80422243 /* V4  */
  1387. #endif /* MUI_OBSOLETE */
  1388. #ifdef MUI_OBSOLETE
  1389. #define MUIM_Window_SetMenuState            0x80422b5e /* V4  */
  1390. #endif /* MUI_OBSOLETE */
  1391. #define MUIM_Window_ToBack                  0x8042152e /* V4  */
  1392. #define MUIM_Window_ToFront                 0x8042554f /* V4  */
  1393. struct  MUIP_Window_AddEventHandler         { ULONG MethodID; struct MUI_EventHandlerNode *ehnode; };
  1394. struct  MUIP_Window_GetMenuCheck            { ULONG MethodID; ULONG MenuID; };
  1395. struct  MUIP_Window_GetMenuState            { ULONG MethodID; ULONG MenuID; };
  1396. struct  MUIP_Window_RemEventHandler         { ULONG MethodID; struct MUI_EventHandlerNode *ehnode; };
  1397. struct  MUIP_Window_ScreenToBack            { ULONG MethodID; };
  1398. struct  MUIP_Window_ScreenToFront           { ULONG MethodID; };
  1399. struct  MUIP_Window_SetCycleChain           { ULONG MethodID; Object *obj[1]; };
  1400. struct  MUIP_Window_SetMenuCheck            { ULONG MethodID; ULONG MenuID; LONG stat; };
  1401. struct  MUIP_Window_SetMenuState            { ULONG MethodID; ULONG MenuID; LONG stat; };
  1402. struct  MUIP_Window_ToBack                  { ULONG MethodID; };
  1403. struct  MUIP_Window_ToFront                 { ULONG MethodID; };
  1404.  
  1405. /* Attributes */
  1406.  
  1407. #define MUIA_Window_Activate                0x80428d2f /* V4  isg BOOL              */
  1408. #define MUIA_Window_ActiveObject            0x80427925 /* V4  .sg Object *          */
  1409. #define MUIA_Window_AltHeight               0x8042cce3 /* V4  i.g LONG              */
  1410. #define MUIA_Window_AltLeftEdge             0x80422d65 /* V4  i.g LONG              */
  1411. #define MUIA_Window_AltTopEdge              0x8042e99b /* V4  i.g LONG              */
  1412. #define MUIA_Window_AltWidth                0x804260f4 /* V4  i.g LONG              */
  1413. #define MUIA_Window_AppWindow               0x804280cf /* V5  i.. BOOL              */
  1414. #define MUIA_Window_Backdrop                0x8042c0bb /* V4  i.. BOOL              */
  1415. #define MUIA_Window_Borderless              0x80429b79 /* V4  i.. BOOL              */
  1416. #define MUIA_Window_CloseGadget             0x8042a110 /* V4  i.. BOOL              */
  1417. #define MUIA_Window_CloseRequest            0x8042e86e /* V4  ..g BOOL              */
  1418. #define MUIA_Window_DefaultObject           0x804294d7 /* V4  isg Object *          */
  1419. #define MUIA_Window_DepthGadget             0x80421923 /* V4  i.. BOOL              */
  1420. #define MUIA_Window_DragBar                 0x8042045d /* V4  i.. BOOL              */
  1421. #define MUIA_Window_FancyDrawing            0x8042bd0e /* V8  isg BOOL              */
  1422. #define MUIA_Window_Height                  0x80425846 /* V4  i.g LONG              */
  1423. #define MUIA_Window_ID                      0x804201bd /* V4  isg ULONG             */
  1424. #define MUIA_Window_InputEvent              0x804247d8 /* V4  ..g struct InputEvent * */
  1425. #define MUIA_Window_IsSubWindow             0x8042b5aa /* V4  isg BOOL              */
  1426. #define MUIA_Window_LeftEdge                0x80426c65 /* V4  i.g LONG              */
  1427. #ifdef MUI_OBSOLETE
  1428. #define MUIA_Window_Menu                    0x8042db94 /* V4  i.. struct NewMenu *  */
  1429. #endif /* MUI_OBSOLETE */
  1430. #define MUIA_Window_MenuAction              0x80427521 /* V8  isg ULONG             */
  1431. #define MUIA_Window_Menustrip               0x8042855e /* V8  i.g Object *          */
  1432. #define MUIA_Window_MouseObject             0x8042bf9b /* V10 ..g Object *          */
  1433. #define MUIA_Window_NeedsMouseObject        0x8042372a /* V10 i.. BOOL              */
  1434. #define MUIA_Window_NoMenus                 0x80429df5 /* V4  is. BOOL              */
  1435. #define MUIA_Window_Open                    0x80428aa0 /* V4  .sg BOOL              */
  1436. #define MUIA_Window_PublicScreen            0x804278e4 /* V6  isg STRPTR            */
  1437. #define MUIA_Window_RefWindow               0x804201f4 /* V4  is. Object *          */
  1438. #define MUIA_Window_RootObject              0x8042cba5 /* V4  isg Object *          */
  1439. #define MUIA_Window_Screen                  0x8042df4f /* V4  isg struct Screen *   */
  1440. #define MUIA_Window_ScreenTitle             0x804234b0 /* V5  isg STRPTR            */
  1441. #define MUIA_Window_SizeGadget              0x8042e33d /* V4  i.. BOOL              */
  1442. #define MUIA_Window_SizeRight               0x80424780 /* V4  i.. BOOL              */
  1443. #define MUIA_Window_Sleep                   0x8042e7db /* V4  .sg BOOL              */
  1444. #define MUIA_Window_Title                   0x8042ad3d /* V4  isg STRPTR            */
  1445. #define MUIA_Window_TopEdge                 0x80427c66 /* V4  i.g LONG              */
  1446. #define MUIA_Window_UseBottomBorderScroller 0x80424e79 /* V13 is. BOOL              */
  1447. #define MUIA_Window_UseLeftBorderScroller   0x8042433e /* V13 is. BOOL              */
  1448. #define MUIA_Window_UseRightBorderScroller  0x8042c05e /* V13 is. BOOL              */
  1449. #define MUIA_Window_Width                   0x8042dcae /* V4  i.g LONG              */
  1450. #define MUIA_Window_Window                  0x80426a42 /* V4  ..g struct Window *   */
  1451.  
  1452. #define MUIV_Window_ActiveObject_None 0
  1453. #define MUIV_Window_ActiveObject_Next -1
  1454. #define MUIV_Window_ActiveObject_Prev -2
  1455. #define MUIV_Window_AltHeight_MinMax(p) (0-(p))
  1456. #define MUIV_Window_AltHeight_Visible(p) (-100-(p))
  1457. #define MUIV_Window_AltHeight_Screen(p) (-200-(p))
  1458. #define MUIV_Window_AltHeight_Scaled -1000
  1459. #define MUIV_Window_AltLeftEdge_Centered -1
  1460. #define MUIV_Window_AltLeftEdge_Moused -2
  1461. #define MUIV_Window_AltLeftEdge_NoChange -1000
  1462. #define MUIV_Window_AltTopEdge_Centered -1
  1463. #define MUIV_Window_AltTopEdge_Moused -2
  1464. #define MUIV_Window_AltTopEdge_Delta(p) (-3-(p))
  1465. #define MUIV_Window_AltTopEdge_NoChange -1000
  1466. #define MUIV_Window_AltWidth_MinMax(p) (0-(p))
  1467. #define MUIV_Window_AltWidth_Visible(p) (-100-(p))
  1468. #define MUIV_Window_AltWidth_Screen(p) (-200-(p))
  1469. #define MUIV_Window_AltWidth_Scaled -1000
  1470. #define MUIV_Window_Height_MinMax(p) (0-(p))
  1471. #define MUIV_Window_Height_Visible(p) (-100-(p))
  1472. #define MUIV_Window_Height_Screen(p) (-200-(p))
  1473. #define MUIV_Window_Height_Scaled -1000
  1474. #define MUIV_Window_Height_Default -1001
  1475. #define MUIV_Window_LeftEdge_Centered -1
  1476. #define MUIV_Window_LeftEdge_Moused -2
  1477. #ifdef MUI_OBSOLETE
  1478. #define MUIV_Window_Menu_NoMenu -1
  1479. #endif /* MUI_OBSOLETE */
  1480. #define MUIV_Window_TopEdge_Centered -1
  1481. #define MUIV_Window_TopEdge_Moused -2
  1482. #define MUIV_Window_TopEdge_Delta(p) (-3-(p))
  1483. #define MUIV_Window_Width_MinMax(p) (0-(p))
  1484. #define MUIV_Window_Width_Visible(p) (-100-(p))
  1485. #define MUIV_Window_Width_Screen(p) (-200-(p))
  1486. #define MUIV_Window_Width_Scaled -1000
  1487. #define MUIV_Window_Width_Default -1001
  1488.  
  1489.  
  1490. /****************************************************************************/
  1491. /** Aboutmui                                                               **/
  1492. /****************************************************************************/
  1493.  
  1494. #ifdef _DCC
  1495. extern char MUIC_Aboutmui[];
  1496. #else
  1497. #define MUIC_Aboutmui "Aboutmui.mui"
  1498. #endif
  1499.  
  1500. /* Methods */
  1501.  
  1502.  
  1503. /* Attributes */
  1504.  
  1505. #define MUIA_Aboutmui_Application           0x80422523 /* V11 i.. Object *          */
  1506.  
  1507.  
  1508.  
  1509. /****************************************************************************/
  1510. /** Area                                                                   **/
  1511. /****************************************************************************/
  1512.  
  1513. #ifdef _DCC
  1514. extern char MUIC_Area[];
  1515. #else
  1516. #define MUIC_Area "Area.mui"
  1517. #endif
  1518.  
  1519. /* Methods */
  1520.  
  1521. #define MUIM_AskMinMax                      0x80423874 /* Custom Class */ /* V4  */
  1522. #define MUIM_Cleanup                        0x8042d985 /* Custom Class */ /* V4  */
  1523. #define MUIM_ContextMenuBuild               0x80429d2e /* V11 */
  1524. #define MUIM_ContextMenuChoice              0x80420f0e /* V11 */
  1525. #define MUIM_DragBegin                      0x8042c03a /* V11 */
  1526. #define MUIM_DragDrop                       0x8042c555 /* V11 */
  1527. #define MUIM_DragFinish                     0x804251f0 /* V11 */
  1528. #define MUIM_DragQuery                      0x80420261 /* V11 */
  1529. #define MUIM_DragReport                     0x8042edad /* V11 */
  1530. #define MUIM_Draw                           0x80426f3f /* Custom Class */ /* V4  */
  1531. #define MUIM_DrawBackground                 0x804238ca /* V11 */
  1532. #define MUIM_HandleEvent                    0x80426d66 /* Custom Class */ /* V16 */
  1533. #define MUIM_HandleInput                    0x80422a1a /* Custom Class */ /* V4  */
  1534. #define MUIM_Hide                           0x8042f20f /* Custom Class */ /* V4  */
  1535. #define MUIM_Setup                          0x80428354 /* Custom Class */ /* V4  */
  1536. #define MUIM_Show                           0x8042cc84 /* Custom Class */ /* V4  */
  1537. struct  MUIP_AskMinMax                      { ULONG MethodID; struct MUI_MinMax *MinMaxInfo; }; /* Custom Class */
  1538. struct  MUIP_Cleanup                        { ULONG MethodID; }; /* Custom Class */
  1539. struct  MUIP_ContextMenuBuild               { ULONG MethodID; LONG mx; LONG my; };
  1540. struct  MUIP_ContextMenuChoice              { ULONG MethodID; Object *item; };
  1541. struct  MUIP_DragBegin                      { ULONG MethodID; Object *obj; };
  1542. struct  MUIP_DragDrop                       { ULONG MethodID; Object *obj; LONG x; LONG y; };
  1543. struct  MUIP_DragFinish                     { ULONG MethodID; Object *obj; };
  1544. struct  MUIP_DragQuery                      { ULONG MethodID; Object *obj; };
  1545. struct  MUIP_DragReport                     { ULONG MethodID; Object *obj; LONG x; LONG y; LONG update; };
  1546. struct  MUIP_Draw                           { ULONG MethodID; ULONG flags; }; /* Custom Class */
  1547. struct  MUIP_DrawBackground                 { ULONG MethodID; LONG left; LONG top; LONG width; LONG height; LONG xoffset; LONG yoffset; LONG flags; };
  1548. struct  MUIP_HandleEvent                    { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
  1549. struct  MUIP_HandleInput                    { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
  1550. struct  MUIP_Hide                           { ULONG MethodID; }; /* Custom Class */
  1551. struct  MUIP_Setup                          { ULONG MethodID; struct MUI_RenderInfo *RenderInfo; }; /* Custom Class */
  1552. struct  MUIP_Show                           { ULONG MethodID; }; /* Custom Class */
  1553.  
  1554. /* Attributes */
  1555.  
  1556. #define MUIA_Background                     0x8042545b /* V4  is. LONG              */
  1557. #define MUIA_BottomEdge                     0x8042e552 /* V4  ..g LONG              */
  1558. #define MUIA_ContextMenu                    0x8042b704 /* V11 isg Object *          */
  1559. #define MUIA_ContextMenuTrigger             0x8042a2c1 /* V11 ..g Object *          */
  1560. #define MUIA_ControlChar                    0x8042120b /* V4  isg char              */
  1561. #define MUIA_CycleChain                     0x80421ce7 /* V11 isg LONG              */
  1562. #define MUIA_Disabled                       0x80423661 /* V4  isg BOOL              */
  1563. #define MUIA_Draggable                      0x80420b6e /* V11 isg BOOL              */
  1564. #define MUIA_Dropable                       0x8042fbce /* V11 isg BOOL              */
  1565. #ifdef MUI_OBSOLETE
  1566. #define MUIA_ExportID                       0x8042d76e /* V4  isg ULONG             */
  1567. #endif /* MUI_OBSOLETE */
  1568. #define MUIA_FillArea                       0x804294a3 /* V4  is. BOOL              */
  1569. #define MUIA_FixHeight                      0x8042a92b /* V4  i.. LONG              */
  1570. #define MUIA_FixHeightTxt                   0x804276f2 /* V4  i.. STRPTR            */
  1571. #define MUIA_FixWidth                       0x8042a3f1 /* V4  i.. LONG              */
  1572. #define MUIA_FixWidthTxt                    0x8042d044 /* V4  i.. STRPTR            */
  1573. #define MUIA_Font                           0x8042be50 /* V4  i.g struct TextFont * */
  1574. #define MUIA_Frame                          0x8042ac64 /* V4  i.. LONG              */
  1575. #define MUIA_FramePhantomHoriz              0x8042ed76 /* V4  i.. BOOL              */
  1576. #define MUIA_FrameTitle                     0x8042d1c7 /* V4  i.. STRPTR            */
  1577. #define MUIA_Height                         0x80423237 /* V4  ..g LONG              */
  1578. #define MUIA_HorizDisappear                 0x80429615 /* V11 isg LONG              */
  1579. #define MUIA_HorizWeight                    0x80426db9 /* V4  isg WORD              */
  1580. #define MUIA_InnerBottom                    0x8042f2c0 /* V4  i.g LONG              */
  1581. #define MUIA_InnerLeft                      0x804228f8 /* V4  i.g LONG              */
  1582. #define MUIA_InnerRight                     0x804297ff /* V4  i.g LONG              */
  1583. #define MUIA_InnerTop                       0x80421eb6 /* V4  i.g LONG              */
  1584. #define MUIA_InputMode                      0x8042fb04 /* V4  i.. LONG              */
  1585. #define MUIA_LeftEdge                       0x8042bec6 /* V4  ..g LONG              */
  1586. #define MUIA_MaxHeight                      0x804293e4 /* V11 i.. LONG              */
  1587. #define MUIA_MaxWidth                       0x8042f112 /* V11 i.. LONG              */
  1588. #define MUIA_Pressed                        0x80423535 /* V4  ..g BOOL              */
  1589. #define MUIA_RightEdge                      0x8042ba82 /* V4  ..g LONG              */
  1590. #define MUIA_Selected                       0x8042654b /* V4  isg BOOL              */
  1591. #define MUIA_ShortHelp                      0x80428fe3 /* V11 isg STRPTR            */
  1592. #define MUIA_ShowMe                         0x80429ba8 /* V4  isg BOOL              */
  1593. #define MUIA_ShowSelState                   0x8042caac /* V4  i.. BOOL              */
  1594. #define MUIA_Timer                          0x80426435 /* V4  ..g LONG              */
  1595. #define MUIA_TopEdge                        0x8042509b /* V4  ..g LONG              */
  1596. #define MUIA_VertDisappear                  0x8042d12f /* V11 isg LONG              */
  1597. #define MUIA_VertWeight                     0x804298d0 /* V4  isg WORD              */
  1598. #define MUIA_Weight                         0x80421d1f /* V4  i.. WORD              */
  1599. #define MUIA_Width                          0x8042b59c /* V4  ..g LONG              */
  1600. #define MUIA_Window                         0x80421591 /* V4  ..g struct Window *   */
  1601. #define MUIA_WindowObject                   0x8042669e /* V4  ..g Object *          */
  1602.  
  1603. #define MUIV_Font_Inherit 0
  1604. #define MUIV_Font_Normal -1
  1605. #define MUIV_Font_List -2
  1606. #define MUIV_Font_Tiny -3
  1607. #define MUIV_Font_Fixed -4
  1608. #define MUIV_Font_Title -5
  1609. #define MUIV_Font_Big -6
  1610. #define MUIV_Font_Button -7
  1611. #define MUIV_Frame_None 0
  1612. #define MUIV_Frame_Button 1
  1613. #define MUIV_Frame_ImageButton 2
  1614. #define MUIV_Frame_Text 3
  1615. #define MUIV_Frame_String 4
  1616. #define MUIV_Frame_ReadList 5
  1617. #define MUIV_Frame_InputList 6
  1618. #define MUIV_Frame_Prop 7
  1619. #define MUIV_Frame_Gauge 8
  1620. #define MUIV_Frame_Group 9
  1621. #define MUIV_Frame_PopUp 10
  1622. #define MUIV_Frame_Virtual 11
  1623. #define MUIV_Frame_Slider 12
  1624. #define MUIV_Frame_Count 13
  1625. #define MUIV_InputMode_None 0
  1626. #define MUIV_InputMode_RelVerify 1
  1627. #define MUIV_InputMode_Immediate 2
  1628. #define MUIV_InputMode_Toggle 3
  1629.  
  1630.  
  1631. /****************************************************************************/
  1632. /** Rectangle                                                              **/
  1633. /****************************************************************************/
  1634.  
  1635. #ifdef _DCC
  1636. extern char MUIC_Rectangle[];
  1637. #else
  1638. #define MUIC_Rectangle "Rectangle.mui"
  1639. #endif
  1640.  
  1641. /* Attributes */
  1642.  
  1643. #define MUIA_Rectangle_BarTitle             0x80426689 /* V11 i.g STRPTR            */
  1644. #define MUIA_Rectangle_HBar                 0x8042c943 /* V7  i.g BOOL              */
  1645. #define MUIA_Rectangle_VBar                 0x80422204 /* V7  i.g BOOL              */
  1646.  
  1647.  
  1648.  
  1649. /****************************************************************************/
  1650. /** Balance                                                                **/
  1651. /****************************************************************************/
  1652.  
  1653. #ifdef _DCC
  1654. extern char MUIC_Balance[];
  1655. #else
  1656. #define MUIC_Balance "Balance.mui"
  1657. #endif
  1658.  
  1659.  
  1660. /****************************************************************************/
  1661. /** Image                                                                  **/
  1662. /****************************************************************************/
  1663.  
  1664. #ifdef _DCC
  1665. extern char MUIC_Image[];
  1666. #else
  1667. #define MUIC_Image "Image.mui"
  1668. #endif
  1669.  
  1670. /* Attributes */
  1671.  
  1672. #define MUIA_Image_FontMatch                0x8042815d /* V4  i.. BOOL              */
  1673. #define MUIA_Image_FontMatchHeight          0x80429f26 /* V4  i.. BOOL              */
  1674. #define MUIA_Image_FontMatchWidth           0x804239bf /* V4  i.. BOOL              */
  1675. #define MUIA_Image_FreeHoriz                0x8042da84 /* V4  i.. BOOL              */
  1676. #define MUIA_Image_FreeVert                 0x8042ea28 /* V4  i.. BOOL              */
  1677. #define MUIA_Image_OldImage                 0x80424f3d /* V4  i.. struct Image *    */
  1678. #define MUIA_Image_Spec                     0x804233d5 /* V4  i.. char *            */
  1679. #define MUIA_Image_State                    0x8042a3ad /* V4  is. LONG              */
  1680.  
  1681.  
  1682.  
  1683. /****************************************************************************/
  1684. /** Bitmap                                                                 **/
  1685. /****************************************************************************/
  1686.  
  1687. #ifdef _DCC
  1688. extern char MUIC_Bitmap[];
  1689. #else
  1690. #define MUIC_Bitmap "Bitmap.mui"
  1691. #endif
  1692.  
  1693. /* Attributes */
  1694.  
  1695. #define MUIA_Bitmap_Bitmap                  0x804279bd /* V8  isg struct BitMap *   */
  1696. #define MUIA_Bitmap_Height                  0x80421560 /* V8  isg LONG              */
  1697. #define MUIA_Bitmap_MappingTable            0x8042e23d /* V8  isg UBYTE *           */
  1698. #define MUIA_Bitmap_Precision               0x80420c74 /* V11 isg LONG              */
  1699. #define MUIA_Bitmap_RemappedBitmap          0x80423a47 /* V11 ..g struct BitMap *   */
  1700. #define MUIA_Bitmap_SourceColors            0x80425360 /* V8  isg ULONG *           */
  1701. #define MUIA_Bitmap_Transparent             0x80422805 /* V8  isg LONG              */
  1702. #define MUIA_Bitmap_UseFriend               0x804239d8 /* V11 i.. BOOL              */
  1703. #define MUIA_Bitmap_Width                   0x8042eb3a /* V8  isg LONG              */
  1704.  
  1705.  
  1706.  
  1707. /****************************************************************************/
  1708. /** Bodychunk                                                              **/
  1709. /****************************************************************************/
  1710.  
  1711. #ifdef _DCC
  1712. extern char MUIC_Bodychunk[];
  1713. #else
  1714. #define MUIC_Bodychunk "Bodychunk.mui"
  1715. #endif
  1716.  
  1717. /* Attributes */
  1718.  
  1719. #define MUIA_Bodychunk_Body                 0x8042ca67 /* V8  isg UBYTE *           */
  1720. #define MUIA_Bodychunk_Compression          0x8042de5f /* V8  isg UBYTE             */
  1721. #define MUIA_Bodychunk_Depth                0x8042c392 /* V8  isg LONG              */
  1722. #define MUIA_Bodychunk_Masking              0x80423b0e /* V8  isg UBYTE             */
  1723.  
  1724.  
  1725.  
  1726. /****************************************************************************/
  1727. /** Text                                                                   **/
  1728. /****************************************************************************/
  1729.  
  1730. #ifdef _DCC
  1731. extern char MUIC_Text[];
  1732. #else
  1733. #define MUIC_Text "Text.mui"
  1734. #endif
  1735.  
  1736. /* Attributes */
  1737.  
  1738. #define MUIA_Text_Contents                  0x8042f8dc /* V4  isg STRPTR            */
  1739. #define MUIA_Text_HiChar                    0x804218ff /* V4  i.. char              */
  1740. #define MUIA_Text_PreParse                  0x8042566d /* V4  isg STRPTR            */
  1741. #define MUIA_Text_SetMax                    0x80424d0a /* V4  i.. BOOL              */
  1742. #define MUIA_Text_SetMin                    0x80424e10 /* V4  i.. BOOL              */
  1743. #define MUIA_Text_SetVMax                   0x80420d8b /* V11 i.. BOOL              */
  1744.  
  1745.  
  1746.  
  1747. /****************************************************************************/
  1748. /** Gadget                                                                 **/
  1749. /****************************************************************************/
  1750.  
  1751. #ifdef _DCC
  1752. extern char MUIC_Gadget[];
  1753. #else
  1754. #define MUIC_Gadget "Gadget.mui"
  1755. #endif
  1756.  
  1757. /* Attributes */
  1758.  
  1759. #define MUIA_Gadget_Gadget                  0x8042ec1a /* V11 ..g struct Gadget *   */
  1760.  
  1761.  
  1762.  
  1763. /****************************************************************************/
  1764. /** String                                                                 **/
  1765. /****************************************************************************/
  1766.  
  1767. #ifdef _DCC
  1768. extern char MUIC_String[];
  1769. #else
  1770. #define MUIC_String "String.mui"
  1771. #endif
  1772.  
  1773. /* Methods */
  1774.  
  1775.  
  1776. /* Attributes */
  1777.  
  1778. #define MUIA_String_Accept                  0x8042e3e1 /* V4  isg STRPTR            */
  1779. #define MUIA_String_Acknowledge             0x8042026c /* V4  ..g STRPTR            */
  1780. #define MUIA_String_AdvanceOnCR             0x804226de /* V11 isg BOOL              */
  1781. #define MUIA_String_AttachedList            0x80420fd2 /* V4  i.. Object *          */
  1782. #define MUIA_String_BufferPos               0x80428b6c /* V4  .sg LONG              */
  1783. #define MUIA_String_Contents                0x80428ffd /* V4  isg STRPTR            */
  1784. #define MUIA_String_DisplayPos              0x8042ccbf /* V4  .sg LONG              */
  1785. #define MUIA_String_EditHook                0x80424c33 /* V7  isg struct Hook *     */
  1786. #define MUIA_String_Format                  0x80427484 /* V4  i.g LONG              */
  1787. #define MUIA_String_Integer                 0x80426e8a /* V4  isg ULONG             */
  1788. #define MUIA_String_LonelyEditHook          0x80421569 /* V11 isg BOOL              */
  1789. #define MUIA_String_MaxLen                  0x80424984 /* V4  i.g LONG              */
  1790. #define MUIA_String_Reject                  0x8042179c /* V4  isg STRPTR            */
  1791. #define MUIA_String_Secret                  0x80428769 /* V4  i.g BOOL              */
  1792.  
  1793. #define MUIV_String_Format_Left 0
  1794. #define MUIV_String_Format_Center 1
  1795. #define MUIV_String_Format_Right 2
  1796.  
  1797.  
  1798. /****************************************************************************/
  1799. /** Boopsi                                                                 **/
  1800. /****************************************************************************/
  1801.  
  1802. #ifdef _DCC
  1803. extern char MUIC_Boopsi[];
  1804. #else
  1805. #define MUIC_Boopsi "Boopsi.mui"
  1806. #endif
  1807.  
  1808. /* Attributes */
  1809.  
  1810. #define MUIA_Boopsi_Class                   0x80426999 /* V4  isg struct IClass *   */
  1811. #define MUIA_Boopsi_ClassID                 0x8042bfa3 /* V4  isg char *            */
  1812. #define MUIA_Boopsi_MaxHeight               0x8042757f /* V4  isg ULONG             */
  1813. #define MUIA_Boopsi_MaxWidth                0x8042bcb1 /* V4  isg ULONG             */
  1814. #define MUIA_Boopsi_MinHeight               0x80422c93 /* V4  isg ULONG             */
  1815. #define MUIA_Boopsi_MinWidth                0x80428fb2 /* V4  isg ULONG             */
  1816. #define MUIA_Boopsi_Object                  0x80420178 /* V4  ..g Object *          */
  1817. #define MUIA_Boopsi_Remember                0x8042f4bd /* V4  i.. ULONG             */
  1818. #define MUIA_Boopsi_Smart                   0x8042b8d7 /* V9  i.. BOOL              */
  1819. #define MUIA_Boopsi_TagDrawInfo             0x8042bae7 /* V4  isg ULONG             */
  1820. #define MUIA_Boopsi_TagScreen               0x8042bc71 /* V4  isg ULONG             */
  1821. #define MUIA_Boopsi_TagWindow               0x8042e11d /* V4  isg ULONG             */
  1822.  
  1823.  
  1824.  
  1825. /****************************************************************************/
  1826. /** Prop                                                                   **/
  1827. /****************************************************************************/
  1828.  
  1829. #ifdef _DCC
  1830. extern char MUIC_Prop[];
  1831. #else
  1832. #define MUIC_Prop "Prop.mui"
  1833. #endif
  1834.  
  1835. /* Methods */
  1836.  
  1837. #define MUIM_Prop_Decrease                  0x80420dd1 /* V16 */
  1838. #define MUIM_Prop_Increase                  0x8042cac0 /* V16 */
  1839. struct  MUIP_Prop_Decrease                  { ULONG MethodID; LONG amount; };
  1840. struct  MUIP_Prop_Increase                  { ULONG MethodID; LONG amount; };
  1841.  
  1842. /* Attributes */
  1843.  
  1844. #define MUIA_Prop_Entries                   0x8042fbdb /* V4  isg LONG              */
  1845. #define MUIA_Prop_First                     0x8042d4b2 /* V4  isg LONG              */
  1846. #define MUIA_Prop_Horiz                     0x8042f4f3 /* V4  i.g BOOL              */
  1847. #define MUIA_Prop_Slider                    0x80429c3a /* V4  isg BOOL              */
  1848. #define MUIA_Prop_UseWinBorder              0x8042deee /* V13 i.. LONG              */
  1849. #define MUIA_Prop_Visible                   0x8042fea6 /* V4  isg LONG              */
  1850.  
  1851. #define MUIV_Prop_UseWinBorder_None 0
  1852. #define MUIV_Prop_UseWinBorder_Left 1
  1853. #define MUIV_Prop_UseWinBorder_Right 2
  1854. #define MUIV_Prop_UseWinBorder_Bottom 3
  1855.  
  1856.  
  1857. /****************************************************************************/
  1858. /** Gauge                                                                  **/
  1859. /****************************************************************************/
  1860.  
  1861. #ifdef _DCC
  1862. extern char MUIC_Gauge[];
  1863. #else
  1864. #define MUIC_Gauge "Gauge.mui"
  1865. #endif
  1866.  
  1867. /* Attributes */
  1868.  
  1869. #define MUIA_Gauge_Current                  0x8042f0dd /* V4  isg LONG              */
  1870. #define MUIA_Gauge_Divide                   0x8042d8df /* V4  isg BOOL              */
  1871. #define MUIA_Gauge_Horiz                    0x804232dd /* V4  i.. BOOL              */
  1872. #define MUIA_Gauge_InfoText                 0x8042bf15 /* V7  isg STRPTR            */
  1873. #define MUIA_Gauge_Max                      0x8042bcdb /* V4  isg LONG              */
  1874.  
  1875.  
  1876.  
  1877. /****************************************************************************/
  1878. /** Scale                                                                  **/
  1879. /****************************************************************************/
  1880.  
  1881. #ifdef _DCC
  1882. extern char MUIC_Scale[];
  1883. #else
  1884. #define MUIC_Scale "Scale.mui"
  1885. #endif
  1886.  
  1887. /* Attributes */
  1888.  
  1889. #define MUIA_Scale_Horiz                    0x8042919a /* V4  isg BOOL              */
  1890.  
  1891.  
  1892.  
  1893. /****************************************************************************/
  1894. /** Colorfield                                                             **/
  1895. /****************************************************************************/
  1896.  
  1897. #ifdef _DCC
  1898. extern char MUIC_Colorfield[];
  1899. #else
  1900. #define MUIC_Colorfield "Colorfield.mui"
  1901. #endif
  1902.  
  1903. /* Attributes */
  1904.  
  1905. #define MUIA_Colorfield_Blue                0x8042d3b0 /* V4  isg ULONG             */
  1906. #define MUIA_Colorfield_Green               0x80424466 /* V4  isg ULONG             */
  1907. #define MUIA_Colorfield_Pen                 0x8042713a /* V4  ..g ULONG             */
  1908. #define MUIA_Colorfield_Red                 0x804279f6 /* V4  isg ULONG             */
  1909. #define MUIA_Colorfield_RGB                 0x8042677a /* V4  isg ULONG *           */
  1910.  
  1911.  
  1912.  
  1913. /****************************************************************************/
  1914. /** List                                                                   **/
  1915. /****************************************************************************/
  1916.  
  1917. #ifdef _DCC
  1918. extern char MUIC_List[];
  1919. #else
  1920. #define MUIC_List "List.mui"
  1921. #endif
  1922.  
  1923. /* Methods */
  1924.  
  1925. #define MUIM_List_Clear                     0x8042ad89 /* V4  */
  1926. #define MUIM_List_CreateImage               0x80429804 /* V11 */
  1927. #define MUIM_List_DeleteImage               0x80420f58 /* V11 */
  1928. #define MUIM_List_Exchange                  0x8042468c /* V4  */
  1929. #define MUIM_List_GetEntry                  0x804280ec /* V4  */
  1930. #define MUIM_List_Insert                    0x80426c87 /* V4  */
  1931. #define MUIM_List_InsertSingle              0x804254d5 /* V7  */
  1932. #define MUIM_List_Jump                      0x8042baab /* V4  */
  1933. #define MUIM_List_Move                      0x804253c2 /* V9  */
  1934. #define MUIM_List_NextSelected              0x80425f17 /* V6  */
  1935. #define MUIM_List_Redraw                    0x80427993 /* V4  */
  1936. #define MUIM_List_Remove                    0x8042647e /* V4  */
  1937. #define MUIM_List_Select                    0x804252d8 /* V4  */
  1938. #define MUIM_List_Sort                      0x80422275 /* V4  */
  1939. #define MUIM_List_TestPos                   0x80425f48 /* V11 */
  1940. struct  MUIP_List_Clear                     { ULONG MethodID; };
  1941. struct  MUIP_List_CreateImage               { ULONG MethodID; Object *obj; ULONG flags; };
  1942. struct  MUIP_List_DeleteImage               { ULONG MethodID; APTR listimg; };
  1943. struct  MUIP_List_Exchange                  { ULONG MethodID; LONG pos1; LONG pos2; };
  1944. struct  MUIP_List_GetEntry                  { ULONG MethodID; LONG pos; APTR *entry; };
  1945. struct  MUIP_List_Insert                    { ULONG MethodID; APTR *entries; LONG count; LONG pos; };
  1946. struct  MUIP_List_InsertSingle              { ULONG MethodID; APTR entry; LONG pos; };
  1947. struct  MUIP_List_Jump                      { ULONG MethodID; LONG pos; };
  1948. struct  MUIP_List_Move                      { ULONG MethodID; LONG from; LONG to; };
  1949. struct  MUIP_List_NextSelected              { ULONG MethodID; LONG *pos; };
  1950. struct  MUIP_List_Redraw                    { ULONG MethodID; LONG pos; };
  1951. struct  MUIP_List_Remove                    { ULONG MethodID; LONG pos; };
  1952. struct  MUIP_List_Select                    { ULONG MethodID; LONG pos; LONG seltype; LONG *state; };
  1953. struct  MUIP_List_Sort                      { ULONG MethodID; };
  1954. struct  MUIP_List_TestPos                   { ULONG MethodID; LONG x; LONG y; struct MUI_List_TestPos_Result *res; };
  1955.  
  1956. /* Attributes */
  1957.  
  1958. #define MUIA_List_Active                    0x8042391c /* V4  isg LONG              */
  1959. #define MUIA_List_AdjustHeight              0x8042850d /* V4  i.. BOOL              */
  1960. #define MUIA_List_AdjustWidth               0x8042354a /* V4  i.. BOOL              */
  1961. #define MUIA_List_AutoVisible               0x8042a445 /* V11 isg BOOL              */
  1962. #define MUIA_List_CompareHook               0x80425c14 /* V4  is. struct Hook *     */
  1963. #define MUIA_List_ConstructHook             0x8042894f /* V4  is. struct Hook *     */
  1964. #define MUIA_List_DestructHook              0x804297ce /* V4  is. struct Hook *     */
  1965. #define MUIA_List_DisplayHook               0x8042b4d5 /* V4  is. struct Hook *     */
  1966. #define MUIA_List_DragSortable              0x80426099 /* V11 isg BOOL              */
  1967. #define MUIA_List_DropMark                  0x8042aba6 /* V11 ..g LONG              */
  1968. #define MUIA_List_Entries                   0x80421654 /* V4  ..g LONG              */
  1969. #define MUIA_List_First                     0x804238d4 /* V4  ..g LONG              */
  1970. #define MUIA_List_Format                    0x80423c0a /* V4  isg STRPTR            */
  1971. #define MUIA_List_InsertPosition            0x8042d0cd /* V9  ..g LONG              */
  1972. #define MUIA_List_MinLineHeight             0x8042d1c3 /* V4  i.. LONG              */
  1973. #define MUIA_List_MultiTestHook             0x8042c2c6 /* V4  is. struct Hook *     */
  1974. #define MUIA_List_Pool                      0x80423431 /* V13 i.. APTR              */
  1975. #define MUIA_List_PoolPuddleSize            0x8042a4eb /* V13 i.. ULONG             */
  1976. #define MUIA_List_PoolThreshSize            0x8042c48c /* V13 i.. ULONG             */
  1977. #define MUIA_List_Quiet                     0x8042d8c7 /* V4  .s. BOOL              */
  1978. #define MUIA_List_ShowDropMarks             0x8042c6f3 /* V11 isg BOOL              */
  1979. #define MUIA_List_SourceArray               0x8042c0a0 /* V4  i.. APTR              */
  1980. #define MUIA_List_Title                     0x80423e66 /* V6  isg char *            */
  1981. #define MUIA_List_Visible                   0x8042191f /* V4  ..g LONG              */
  1982.  
  1983. #define MUIV_List_Active_Off -1
  1984. #define MUIV_List_Active_Top -2
  1985. #define MUIV_List_Active_Bottom -3
  1986. #define MUIV_List_Active_Up -4
  1987. #define MUIV_List_Active_Down -5
  1988. #define MUIV_List_Active_PageUp -6
  1989. #define MUIV_List_Active_PageDown -7
  1990. #define MUIV_List_ConstructHook_String -1
  1991. #define MUIV_List_CopyHook_String -1
  1992. #define MUIV_List_CursorType_None 0
  1993. #define MUIV_List_CursorType_Bar 1
  1994. #define MUIV_List_CursorType_Rect 2
  1995. #define MUIV_List_DestructHook_String -1
  1996.  
  1997.  
  1998. /****************************************************************************/
  1999. /** Floattext                                                              **/
  2000. /****************************************************************************/
  2001.  
  2002. #ifdef _DCC
  2003. extern char MUIC_Floattext[];
  2004. #else
  2005. #define MUIC_Floattext "Floattext.mui"
  2006. #endif
  2007.  
  2008. /* Attributes */
  2009.  
  2010. #define MUIA_Floattext_Justify              0x8042dc03 /* V4  isg BOOL              */
  2011. #define MUIA_Floattext_SkipChars            0x80425c7d /* V4  is. STRPTR            */
  2012. #define MUIA_Floattext_TabSize              0x80427d17 /* V4  is. LONG              */
  2013. #define MUIA_Floattext_Text                 0x8042d16a /* V4  isg STRPTR            */
  2014.  
  2015.  
  2016.  
  2017. /****************************************************************************/
  2018. /** Volumelist                                                             **/
  2019. /****************************************************************************/
  2020.  
  2021. #ifdef _DCC
  2022. extern char MUIC_Volumelist[];
  2023. #else
  2024. #define MUIC_Volumelist "Volumelist.mui"
  2025. #endif
  2026.  
  2027.  
  2028. /****************************************************************************/
  2029. /** Scrmodelist                                                            **/
  2030. /****************************************************************************/
  2031.  
  2032. #ifdef _DCC
  2033. extern char MUIC_Scrmodelist[];
  2034. #else
  2035. #define MUIC_Scrmodelist "Scrmodelist.mui"
  2036. #endif
  2037.  
  2038. /* Attributes */
  2039.  
  2040.  
  2041.  
  2042.  
  2043. /****************************************************************************/
  2044. /** Dirlist                                                                **/
  2045. /****************************************************************************/
  2046.  
  2047. #ifdef _DCC
  2048. extern char MUIC_Dirlist[];
  2049. #else
  2050. #define MUIC_Dirlist "Dirlist.mui"
  2051. #endif
  2052.  
  2053. /* Methods */
  2054.  
  2055. #define MUIM_Dirlist_ReRead                 0x80422d71 /* V4  */
  2056. struct  MUIP_Dirlist_ReRead                 { ULONG MethodID; };
  2057.  
  2058. /* Attributes */
  2059.  
  2060. #define MUIA_Dirlist_AcceptPattern          0x8042760a /* V4  is. STRPTR            */
  2061. #define MUIA_Dirlist_Directory              0x8042ea41 /* V4  isg STRPTR            */
  2062. #define MUIA_Dirlist_DrawersOnly            0x8042b379 /* V4  is. BOOL              */
  2063. #define MUIA_Dirlist_FilesOnly              0x8042896a /* V4  is. BOOL              */
  2064. #define MUIA_Dirlist_FilterDrawers          0x80424ad2 /* V4  is. BOOL              */
  2065. #define MUIA_Dirlist_FilterHook             0x8042ae19 /* V4  is. struct Hook *     */
  2066. #define MUIA_Dirlist_MultiSelDirs           0x80428653 /* V6  is. BOOL              */
  2067. #define MUIA_Dirlist_NumBytes               0x80429e26 /* V4  ..g LONG              */
  2068. #define MUIA_Dirlist_NumDrawers             0x80429cb8 /* V4  ..g LONG              */
  2069. #define MUIA_Dirlist_NumFiles               0x8042a6f0 /* V4  ..g LONG              */
  2070. #define MUIA_Dirlist_Path                   0x80426176 /* V4  ..g STRPTR            */
  2071. #define MUIA_Dirlist_RejectIcons            0x80424808 /* V4  is. BOOL              */
  2072. #define MUIA_Dirlist_RejectPattern          0x804259c7 /* V4  is. STRPTR            */
  2073. #define MUIA_Dirlist_SortDirs               0x8042bbb9 /* V4  is. LONG              */
  2074. #define MUIA_Dirlist_SortHighLow            0x80421896 /* V4  is. BOOL              */
  2075. #define MUIA_Dirlist_SortType               0x804228bc /* V4  is. LONG              */
  2076. #define MUIA_Dirlist_Status                 0x804240de /* V4  ..g LONG              */
  2077.  
  2078. #define MUIV_Dirlist_SortDirs_First 0
  2079. #define MUIV_Dirlist_SortDirs_Last 1
  2080. #define MUIV_Dirlist_SortDirs_Mix 2
  2081. #define MUIV_Dirlist_SortType_Name 0
  2082. #define MUIV_Dirlist_SortType_Date 1
  2083. #define MUIV_Dirlist_SortType_Size 2
  2084. #define MUIV_Dirlist_Status_Invalid 0
  2085. #define MUIV_Dirlist_Status_Reading 1
  2086. #define MUIV_Dirlist_Status_Valid 2
  2087.  
  2088.  
  2089. /****************************************************************************/
  2090. /** Numeric                                                                **/
  2091. /****************************************************************************/
  2092.  
  2093. #ifdef _DCC
  2094. extern char MUIC_Numeric[];
  2095. #else
  2096. #define MUIC_Numeric "Numeric.mui"
  2097. #endif
  2098.  
  2099. /* Methods */
  2100.  
  2101. #define MUIM_Numeric_Decrease               0x804243a7 /* V11 */
  2102. #define MUIM_Numeric_Increase               0x80426ecd /* V11 */
  2103. #define MUIM_Numeric_ScaleToValue           0x8042032c /* V11 */
  2104. #define MUIM_Numeric_SetDefault             0x8042ab0a /* V11 */
  2105. #define MUIM_Numeric_Stringify              0x80424891 /* V11 */
  2106. #define MUIM_Numeric_ValueToScale           0x80423e4f /* V11 */
  2107. struct  MUIP_Numeric_Decrease               { ULONG MethodID; LONG amount; };
  2108. struct  MUIP_Numeric_Increase               { ULONG MethodID; LONG amount; };
  2109. struct  MUIP_Numeric_ScaleToValue           { ULONG MethodID; LONG scalemin; LONG scalemax; LONG scale; };
  2110. struct  MUIP_Numeric_SetDefault             { ULONG MethodID; };
  2111. struct  MUIP_Numeric_Stringify              { ULONG MethodID; LONG value; };
  2112. struct  MUIP_Numeric_ValueToScale           { ULONG MethodID; LONG scalemin; LONG scalemax; };
  2113.  
  2114. /* Attributes */
  2115.  
  2116. #define MUIA_Numeric_Default                0x804263e8 /* V11 isg LONG              */
  2117. #define MUIA_Numeric_Format                 0x804263e9 /* V11 isg STRPTR            */
  2118. #define MUIA_Numeric_Max                    0x8042d78a /* V11 isg LONG              */
  2119. #define MUIA_Numeric_Min                    0x8042e404 /* V11 isg LONG              */
  2120. #define MUIA_Numeric_Reverse                0x8042f2a0 /* V11 isg BOOL              */
  2121. #define MUIA_Numeric_RevLeftRight           0x804294a7 /* V11 isg BOOL              */
  2122. #define MUIA_Numeric_RevUpDown              0x804252dd /* V11 isg BOOL              */
  2123. #define MUIA_Numeric_Value                  0x8042ae3a /* V11 isg LONG              */
  2124.  
  2125.  
  2126.  
  2127. /****************************************************************************/
  2128. /** Knob                                                                   **/
  2129. /****************************************************************************/
  2130.  
  2131. #ifdef _DCC
  2132. extern char MUIC_Knob[];
  2133. #else
  2134. #define MUIC_Knob "Knob.mui"
  2135. #endif
  2136.  
  2137.  
  2138. /****************************************************************************/
  2139. /** Levelmeter                                                             **/
  2140. /****************************************************************************/
  2141.  
  2142. #ifdef _DCC
  2143. extern char MUIC_Levelmeter[];
  2144. #else
  2145. #define MUIC_Levelmeter "Levelmeter.mui"
  2146. #endif
  2147.  
  2148. /* Attributes */
  2149.  
  2150. #define MUIA_Levelmeter_Label               0x80420dd5 /* V11 isg STRPTR            */
  2151.  
  2152.  
  2153.  
  2154. /****************************************************************************/
  2155. /** Numericbutton                                                          **/
  2156. /****************************************************************************/
  2157.  
  2158. #ifdef _DCC
  2159. extern char MUIC_Numericbutton[];
  2160. #else
  2161. #define MUIC_Numericbutton "Numericbutton.mui"
  2162. #endif
  2163.  
  2164.  
  2165. /****************************************************************************/
  2166. /** Slider                                                                 **/
  2167. /****************************************************************************/
  2168.  
  2169. #ifdef _DCC
  2170. extern char MUIC_Slider[];
  2171. #else
  2172. #define MUIC_Slider "Slider.mui"
  2173. #endif
  2174.  
  2175. /* Attributes */
  2176.  
  2177. #define MUIA_Slider_Horiz                   0x8042fad1 /* V11 isg BOOL              */
  2178. #ifdef MUI_OBSOLETE
  2179. #define MUIA_Slider_Level                   0x8042ae3a /* V4  isg LONG              */
  2180. #endif /* MUI_OBSOLETE */
  2181. #ifdef MUI_OBSOLETE
  2182. #define MUIA_Slider_Max                     0x8042d78a /* V4  isg LONG              */
  2183. #endif /* MUI_OBSOLETE */
  2184. #ifdef MUI_OBSOLETE
  2185. #define MUIA_Slider_Min                     0x8042e404 /* V4  isg LONG              */
  2186. #endif /* MUI_OBSOLETE */
  2187. #define MUIA_Slider_Quiet                   0x80420b26 /* V6  i.. BOOL              */
  2188. #ifdef MUI_OBSOLETE
  2189. #define MUIA_Slider_Reverse                 0x8042f2a0 /* V4  isg BOOL              */
  2190. #endif /* MUI_OBSOLETE */
  2191.  
  2192.  
  2193.  
  2194. /****************************************************************************/
  2195. /** Framedisplay                                                           **/
  2196. /****************************************************************************/
  2197.  
  2198. #ifdef _DCC
  2199. extern char MUIC_Framedisplay[];
  2200. #else
  2201. #define MUIC_Framedisplay "Framedisplay.mui"
  2202. #endif
  2203.  
  2204. /* Attributes */
  2205.  
  2206.  
  2207.  
  2208.  
  2209. /****************************************************************************/
  2210. /** Popframe                                                               **/
  2211. /****************************************************************************/
  2212.  
  2213. #ifdef _DCC
  2214. extern char MUIC_Popframe[];
  2215. #else
  2216. #define MUIC_Popframe "Popframe.mui"
  2217. #endif
  2218.  
  2219.  
  2220. /****************************************************************************/
  2221. /** Imagedisplay                                                           **/
  2222. /****************************************************************************/
  2223.  
  2224. #ifdef _DCC
  2225. extern char MUIC_Imagedisplay[];
  2226. #else
  2227. #define MUIC_Imagedisplay "Imagedisplay.mui"
  2228. #endif
  2229.  
  2230. /* Attributes */
  2231.  
  2232.  
  2233.  
  2234.  
  2235. /****************************************************************************/
  2236. /** Popimage                                                               **/
  2237. /****************************************************************************/
  2238.  
  2239. #ifdef _DCC
  2240. extern char MUIC_Popimage[];
  2241. #else
  2242. #define MUIC_Popimage "Popimage.mui"
  2243. #endif
  2244.  
  2245.  
  2246. /****************************************************************************/
  2247. /** Pendisplay                                                             **/
  2248. /****************************************************************************/
  2249.  
  2250. #ifdef _DCC
  2251. extern char MUIC_Pendisplay[];
  2252. #else
  2253. #define MUIC_Pendisplay "Pendisplay.mui"
  2254. #endif
  2255.  
  2256. /* Methods */
  2257.  
  2258. #define MUIM_Pendisplay_SetColormap         0x80426c80 /* V13 */
  2259. #define MUIM_Pendisplay_SetMUIPen           0x8042039d /* V13 */
  2260. #define MUIM_Pendisplay_SetRGB              0x8042c131 /* V13 */
  2261. struct  MUIP_Pendisplay_SetColormap         { ULONG MethodID; LONG colormap; };
  2262. struct  MUIP_Pendisplay_SetMUIPen           { ULONG MethodID; LONG muipen; };
  2263. struct  MUIP_Pendisplay_SetRGB              { ULONG MethodID; ULONG red; ULONG green; ULONG blue; };
  2264.  
  2265. /* Attributes */
  2266.  
  2267. #define MUIA_Pendisplay_Pen                 0x8042a748 /* V13 ..g Object *          */
  2268. #define MUIA_Pendisplay_Reference           0x8042dc24 /* V13 isg Object *          */
  2269. #define MUIA_Pendisplay_RGBcolor            0x8042a1a9 /* V11 isg struct MUI_RBBcolor * */
  2270. #define MUIA_Pendisplay_Spec                0x8042a204 /* V11 isg struct MUI_PenSpec  * */
  2271.  
  2272.  
  2273.  
  2274. /****************************************************************************/
  2275. /** Poppen                                                                 **/
  2276. /****************************************************************************/
  2277.  
  2278. #ifdef _DCC
  2279. extern char MUIC_Poppen[];
  2280. #else
  2281. #define MUIC_Poppen "Poppen.mui"
  2282. #endif
  2283.  
  2284.  
  2285. /****************************************************************************/
  2286. /** Group                                                                  **/
  2287. /****************************************************************************/
  2288.  
  2289. #ifdef _DCC
  2290. extern char MUIC_Group[];
  2291. #else
  2292. #define MUIC_Group "Group.mui"
  2293. #endif
  2294.  
  2295. /* Methods */
  2296.  
  2297. #define MUIM_Group_ExitChange               0x8042d1cc /* V11 */
  2298. #define MUIM_Group_InitChange               0x80420887 /* V11 */
  2299. #define MUIM_Group_Sort                     0x80427417 /* V4  */
  2300. struct  MUIP_Group_ExitChange               { ULONG MethodID; };
  2301. struct  MUIP_Group_InitChange               { ULONG MethodID; };
  2302. struct  MUIP_Group_Sort                     { ULONG MethodID; Object *obj[1]; };
  2303.  
  2304. /* Attributes */
  2305.  
  2306. #define MUIA_Group_ActivePage               0x80424199 /* V5  isg LONG              */
  2307. #define MUIA_Group_Child                    0x804226e6 /* V4  i.. Object *          */
  2308. #define MUIA_Group_ChildList                0x80424748 /* V4  ..g struct List *     */
  2309. #define MUIA_Group_Columns                  0x8042f416 /* V4  is. LONG              */
  2310. #define MUIA_Group_Horiz                    0x8042536b /* V4  i.. BOOL              */
  2311. #define MUIA_Group_HorizSpacing             0x8042c651 /* V4  isg LONG              */
  2312. #define MUIA_Group_LayoutHook               0x8042c3b2 /* V11 i.. struct Hook *     */
  2313. #define MUIA_Group_PageMode                 0x80421a5f /* V5  i.. BOOL              */
  2314. #define MUIA_Group_Rows                     0x8042b68f /* V4  is. LONG              */
  2315. #define MUIA_Group_SameHeight               0x8042037e /* V4  i.. BOOL              */
  2316. #define MUIA_Group_SameSize                 0x80420860 /* V4  i.. BOOL              */
  2317. #define MUIA_Group_SameWidth                0x8042b3ec /* V4  i.. BOOL              */
  2318. #define MUIA_Group_Spacing                  0x8042866d /* V4  is. LONG              */
  2319. #define MUIA_Group_VertSpacing              0x8042e1bf /* V4  isg LONG              */
  2320.  
  2321. #define MUIV_Group_ActivePage_First 0
  2322. #define MUIV_Group_ActivePage_Last -1
  2323. #define MUIV_Group_ActivePage_Prev -2
  2324. #define MUIV_Group_ActivePage_Next -3
  2325. #define MUIV_Group_ActivePage_Advance -4
  2326.  
  2327.  
  2328. /****************************************************************************/
  2329. /** Mccprefs                                                               **/
  2330. /****************************************************************************/
  2331.  
  2332. #ifdef _DCC
  2333. extern char MUIC_Mccprefs[];
  2334. #else
  2335. #define MUIC_Mccprefs "Mccprefs.mui"
  2336. #endif
  2337.  
  2338.  
  2339. /****************************************************************************/
  2340. /** Register                                                               **/
  2341. /****************************************************************************/
  2342.  
  2343. #ifdef _DCC
  2344. extern char MUIC_Register[];
  2345. #else
  2346. #define MUIC_Register "Register.mui"
  2347. #endif
  2348.  
  2349. /* Attributes */
  2350.  
  2351. #define MUIA_Register_Frame                 0x8042349b /* V7  i.g BOOL              */
  2352. #define MUIA_Register_Titles                0x804297ec /* V7  i.g STRPTR *          */
  2353.  
  2354.  
  2355.  
  2356. /****************************************************************************/
  2357. /** Penadjust                                                              **/
  2358. /****************************************************************************/
  2359.  
  2360. #ifdef _DCC
  2361. extern char MUIC_Penadjust[];
  2362. #else
  2363. #define MUIC_Penadjust "Penadjust.mui"
  2364. #endif
  2365.  
  2366. /* Methods */
  2367.  
  2368.  
  2369. /* Attributes */
  2370.  
  2371. #define MUIA_Penadjust_PSIMode              0x80421cbb /* V11 i.. BOOL              */
  2372.  
  2373.  
  2374.  
  2375. /****************************************************************************/
  2376. /** Settingsgroup                                                          **/
  2377. /****************************************************************************/
  2378.  
  2379. #ifdef _DCC
  2380. extern char MUIC_Settingsgroup[];
  2381. #else
  2382. #define MUIC_Settingsgroup "Settingsgroup.mui"
  2383. #endif
  2384.  
  2385. /* Methods */
  2386.  
  2387. #define MUIM_Settingsgroup_ConfigToGadgets  0x80427043 /* V11 */
  2388. #define MUIM_Settingsgroup_GadgetsToConfig  0x80425242 /* V11 */
  2389. struct  MUIP_Settingsgroup_ConfigToGadgets  { ULONG MethodID; Object *configdata; };
  2390. struct  MUIP_Settingsgroup_GadgetsToConfig  { ULONG MethodID; Object *configdata; };
  2391.  
  2392. /* Attributes */
  2393.  
  2394.  
  2395.  
  2396.  
  2397. /****************************************************************************/
  2398. /** Settings                                                               **/
  2399. /****************************************************************************/
  2400.  
  2401. #ifdef _DCC
  2402. extern char MUIC_Settings[];
  2403. #else
  2404. #define MUIC_Settings "Settings.mui"
  2405. #endif
  2406.  
  2407. /* Methods */
  2408.  
  2409.  
  2410. /* Attributes */
  2411.  
  2412.  
  2413.  
  2414.  
  2415. /****************************************************************************/
  2416. /** Frameadjust                                                            **/
  2417. /****************************************************************************/
  2418.  
  2419. #ifdef _DCC
  2420. extern char MUIC_Frameadjust[];
  2421. #else
  2422. #define MUIC_Frameadjust "Frameadjust.mui"
  2423. #endif
  2424.  
  2425. /* Methods */
  2426.  
  2427.  
  2428. /* Attributes */
  2429.  
  2430.  
  2431.  
  2432.  
  2433. /****************************************************************************/
  2434. /** Imageadjust                                                            **/
  2435. /****************************************************************************/
  2436.  
  2437. #ifdef _DCC
  2438. extern char MUIC_Imageadjust[];
  2439. #else
  2440. #define MUIC_Imageadjust "Imageadjust.mui"
  2441. #endif
  2442.  
  2443. /* Methods */
  2444.  
  2445.  
  2446. /* Attributes */
  2447.  
  2448.  
  2449. #define MUIV_Imageadjust_Type_All 0
  2450. #define MUIV_Imageadjust_Type_Image 1
  2451. #define MUIV_Imageadjust_Type_Background 2
  2452. #define MUIV_Imageadjust_Type_Pen 3
  2453.  
  2454.  
  2455. /****************************************************************************/
  2456. /** Virtgroup                                                              **/
  2457. /****************************************************************************/
  2458.  
  2459. #ifdef _DCC
  2460. extern char MUIC_Virtgroup[];
  2461. #else
  2462. #define MUIC_Virtgroup "Virtgroup.mui"
  2463. #endif
  2464.  
  2465. /* Methods */
  2466.  
  2467.  
  2468. /* Attributes */
  2469.  
  2470. #define MUIA_Virtgroup_Height               0x80423038 /* V6  ..g LONG              */
  2471. #define MUIA_Virtgroup_Input                0x80427f7e /* V11 i.. BOOL              */
  2472. #define MUIA_Virtgroup_Left                 0x80429371 /* V6  isg LONG              */
  2473. #define MUIA_Virtgroup_Top                  0x80425200 /* V6  isg LONG              */
  2474. #define MUIA_Virtgroup_Width                0x80427c49 /* V6  ..g LONG              */
  2475.  
  2476.  
  2477.  
  2478. /****************************************************************************/
  2479. /** Scrollgroup                                                            **/
  2480. /****************************************************************************/
  2481.  
  2482. #ifdef _DCC
  2483. extern char MUIC_Scrollgroup[];
  2484. #else
  2485. #define MUIC_Scrollgroup "Scrollgroup.mui"
  2486. #endif
  2487.  
  2488. /* Methods */
  2489.  
  2490.  
  2491. /* Attributes */
  2492.  
  2493. #define MUIA_Scrollgroup_Contents           0x80421261 /* V4  i.g Object *          */
  2494. #define MUIA_Scrollgroup_FreeHoriz          0x804292f3 /* V9  i.. BOOL              */
  2495. #define MUIA_Scrollgroup_FreeVert           0x804224f2 /* V9  i.. BOOL              */
  2496. #define MUIA_Scrollgroup_HorizBar           0x8042b63d /* V16 ..g Object *          */
  2497. #define MUIA_Scrollgroup_UseWinBorder       0x804284c1 /* V13 i.. BOOL              */
  2498. #define MUIA_Scrollgroup_VertBar            0x8042cdc0 /* V16 ..g Object *          */
  2499.  
  2500.  
  2501.  
  2502. /****************************************************************************/
  2503. /** Scrollbar                                                              **/
  2504. /****************************************************************************/
  2505.  
  2506. #ifdef _DCC
  2507. extern char MUIC_Scrollbar[];
  2508. #else
  2509. #define MUIC_Scrollbar "Scrollbar.mui"
  2510. #endif
  2511.  
  2512. /* Attributes */
  2513.  
  2514. #define MUIA_Scrollbar_Type                 0x8042fb6b /* V11 i.. LONG              */
  2515.  
  2516. #define MUIV_Scrollbar_Type_Default 0
  2517. #define MUIV_Scrollbar_Type_Bottom 1
  2518. #define MUIV_Scrollbar_Type_Top 2
  2519. #define MUIV_Scrollbar_Type_Sym 3
  2520.  
  2521.  
  2522. /****************************************************************************/
  2523. /** Listview                                                               **/
  2524. /****************************************************************************/
  2525.  
  2526. #ifdef _DCC
  2527. extern char MUIC_Listview[];
  2528. #else
  2529. #define MUIC_Listview "Listview.mui"
  2530. #endif
  2531.  
  2532. /* Attributes */
  2533.  
  2534. #define MUIA_Listview_ClickColumn           0x8042d1b3 /* V7  ..g LONG              */
  2535. #define MUIA_Listview_DefClickColumn        0x8042b296 /* V7  isg LONG              */
  2536. #define MUIA_Listview_DoubleClick           0x80424635 /* V4  i.g BOOL              */
  2537. #define MUIA_Listview_DragType              0x80425cd3 /* V11 isg LONG              */
  2538. #define MUIA_Listview_Input                 0x8042682d /* V4  i.. BOOL              */
  2539. #define MUIA_Listview_List                  0x8042bcce /* V4  i.g Object *          */
  2540. #define MUIA_Listview_MultiSelect           0x80427e08 /* V7  i.. LONG              */
  2541. #define MUIA_Listview_ScrollerPos           0x8042b1b4 /* V10 i.. BOOL              */
  2542. #define MUIA_Listview_SelectChange          0x8042178f /* V4  ..g BOOL              */
  2543.  
  2544. #define MUIV_Listview_DragType_None 0
  2545. #define MUIV_Listview_DragType_Immediate 1
  2546. #define MUIV_Listview_MultiSelect_None 0
  2547. #define MUIV_Listview_MultiSelect_Default 1
  2548. #define MUIV_Listview_MultiSelect_Shifted 2
  2549. #define MUIV_Listview_MultiSelect_Always 3
  2550. #define MUIV_Listview_ScrollerPos_Default 0
  2551. #define MUIV_Listview_ScrollerPos_Left 1
  2552. #define MUIV_Listview_ScrollerPos_Right 2
  2553. #define MUIV_Listview_ScrollerPos_None 3
  2554.  
  2555.  
  2556. /****************************************************************************/
  2557. /** Radio                                                                  **/
  2558. /****************************************************************************/
  2559.  
  2560. #ifdef _DCC
  2561. extern char MUIC_Radio[];
  2562. #else
  2563. #define MUIC_Radio "Radio.mui"
  2564. #endif
  2565.  
  2566. /* Attributes */
  2567.  
  2568. #define MUIA_Radio_Active                   0x80429b41 /* V4  isg LONG              */
  2569. #define MUIA_Radio_Entries                  0x8042b6a1 /* V4  i.. STRPTR *          */
  2570.  
  2571.  
  2572.  
  2573. /****************************************************************************/
  2574. /** Cycle                                                                  **/
  2575. /****************************************************************************/
  2576.  
  2577. #ifdef _DCC
  2578. extern char MUIC_Cycle[];
  2579. #else
  2580. #define MUIC_Cycle "Cycle.mui"
  2581. #endif
  2582.  
  2583. /* Attributes */
  2584.  
  2585. #define MUIA_Cycle_Active                   0x80421788 /* V4  isg LONG              */
  2586. #define MUIA_Cycle_Entries                  0x80420629 /* V4  i.. STRPTR *          */
  2587.  
  2588. #define MUIV_Cycle_Active_Next -1
  2589. #define MUIV_Cycle_Active_Prev -2
  2590.  
  2591.  
  2592. /****************************************************************************/
  2593. /** Coloradjust                                                            **/
  2594. /****************************************************************************/
  2595.  
  2596. #ifdef _DCC
  2597. extern char MUIC_Coloradjust[];
  2598. #else
  2599. #define MUIC_Coloradjust "Coloradjust.mui"
  2600. #endif
  2601.  
  2602. /* Methods */
  2603.  
  2604.  
  2605. /* Attributes */
  2606.  
  2607. #define MUIA_Coloradjust_Blue               0x8042b8a3 /* V4  isg ULONG             */
  2608. #define MUIA_Coloradjust_Green              0x804285ab /* V4  isg ULONG             */
  2609. #define MUIA_Coloradjust_ModeID             0x8042ec59 /* V4  isg ULONG             */
  2610. #define MUIA_Coloradjust_Red                0x80420eaa /* V4  isg ULONG             */
  2611. #define MUIA_Coloradjust_RGB                0x8042f899 /* V4  isg ULONG *           */
  2612.  
  2613.  
  2614.  
  2615. /****************************************************************************/
  2616. /** Palette                                                                **/
  2617. /****************************************************************************/
  2618.  
  2619. #ifdef _DCC
  2620. extern char MUIC_Palette[];
  2621. #else
  2622. #define MUIC_Palette "Palette.mui"
  2623. #endif
  2624.  
  2625. /* Attributes */
  2626.  
  2627. #define MUIA_Palette_Entries                0x8042a3d8 /* V6  i.g struct MUI_Palette_Entry * */
  2628. #define MUIA_Palette_Groupable              0x80423e67 /* V6  isg BOOL              */
  2629. #define MUIA_Palette_Names                  0x8042c3a2 /* V6  isg char **           */
  2630.  
  2631.  
  2632.  
  2633. /****************************************************************************/
  2634. /** Popstring                                                              **/
  2635. /****************************************************************************/
  2636.  
  2637. #ifdef _DCC
  2638. extern char MUIC_Popstring[];
  2639. #else
  2640. #define MUIC_Popstring "Popstring.mui"
  2641. #endif
  2642.  
  2643. /* Methods */
  2644.  
  2645. #define MUIM_Popstring_Close                0x8042dc52 /* V7  */
  2646. #define MUIM_Popstring_Open                 0x804258ba /* V7  */
  2647. struct  MUIP_Popstring_Close                { ULONG MethodID; LONG result; };
  2648. struct  MUIP_Popstring_Open                 { ULONG MethodID; };
  2649.  
  2650. /* Attributes */
  2651.  
  2652. #define MUIA_Popstring_Button               0x8042d0b9 /* V7  i.g Object *          */
  2653. #define MUIA_Popstring_CloseHook            0x804256bf /* V7  isg struct Hook *     */
  2654. #define MUIA_Popstring_OpenHook             0x80429d00 /* V7  isg struct Hook *     */
  2655. #define MUIA_Popstring_String               0x804239ea /* V7  i.g Object *          */
  2656. #define MUIA_Popstring_Toggle               0x80422b7a /* V7  isg BOOL              */
  2657.  
  2658.  
  2659.  
  2660. /****************************************************************************/
  2661. /** Popobject                                                              **/
  2662. /****************************************************************************/
  2663.  
  2664. #ifdef _DCC
  2665. extern char MUIC_Popobject[];
  2666. #else
  2667. #define MUIC_Popobject "Popobject.mui"
  2668. #endif
  2669.  
  2670. /* Attributes */
  2671.  
  2672. #define MUIA_Popobject_Follow               0x80424cb5 /* V7  isg BOOL              */
  2673. #define MUIA_Popobject_Light                0x8042a5a3 /* V7  isg BOOL              */
  2674. #define MUIA_Popobject_Object               0x804293e3 /* V7  i.g Object *          */
  2675. #define MUIA_Popobject_ObjStrHook           0x8042db44 /* V7  isg struct Hook *     */
  2676. #define MUIA_Popobject_StrObjHook           0x8042fbe1 /* V7  isg struct Hook *     */
  2677. #define MUIA_Popobject_Volatile             0x804252ec /* V7  isg BOOL              */
  2678. #define MUIA_Popobject_WindowHook           0x8042f194 /* V9  isg struct Hook *     */
  2679.  
  2680.  
  2681.  
  2682. /****************************************************************************/
  2683. /** Poplist                                                                **/
  2684. /****************************************************************************/
  2685.  
  2686. #ifdef _DCC
  2687. extern char MUIC_Poplist[];
  2688. #else
  2689. #define MUIC_Poplist "Poplist.mui"
  2690. #endif
  2691.  
  2692. /* Attributes */
  2693.  
  2694. #define MUIA_Poplist_Array                  0x8042084c /* V8  i.. char **           */
  2695.  
  2696.  
  2697.  
  2698. /****************************************************************************/
  2699. /** Popscreen                                                              **/
  2700. /****************************************************************************/
  2701.  
  2702. #ifdef _DCC
  2703. extern char MUIC_Popscreen[];
  2704. #else
  2705. #define MUIC_Popscreen "Popscreen.mui"
  2706. #endif
  2707.  
  2708. /* Attributes */
  2709.  
  2710.  
  2711.  
  2712.  
  2713. /****************************************************************************/
  2714. /** Popasl                                                                 **/
  2715. /****************************************************************************/
  2716.  
  2717. #ifdef _DCC
  2718. extern char MUIC_Popasl[];
  2719. #else
  2720. #define MUIC_Popasl "Popasl.mui"
  2721. #endif
  2722.  
  2723. /* Attributes */
  2724.  
  2725. #define MUIA_Popasl_Active                  0x80421b37 /* V7  ..g BOOL              */
  2726. #define MUIA_Popasl_StartHook               0x8042b703 /* V7  isg struct Hook *     */
  2727. #define MUIA_Popasl_StopHook                0x8042d8d2 /* V7  isg struct Hook *     */
  2728. #define MUIA_Popasl_Type                    0x8042df3d /* V7  i.g ULONG             */
  2729.  
  2730.  
  2731.  
  2732. /****************************************************************************/
  2733. /** Semaphore                                                              **/
  2734. /****************************************************************************/
  2735.  
  2736. #ifdef _DCC
  2737. extern char MUIC_Semaphore[];
  2738. #else
  2739. #define MUIC_Semaphore "Semaphore.mui"
  2740. #endif
  2741.  
  2742. /* Methods */
  2743.  
  2744. #define MUIM_Semaphore_Attempt              0x80426ce2 /* V11 */
  2745. #define MUIM_Semaphore_AttemptShared        0x80422551 /* V11 */
  2746. #define MUIM_Semaphore_Obtain               0x804276f0 /* V11 */
  2747. #define MUIM_Semaphore_ObtainShared         0x8042ea02 /* V11 */
  2748. #define MUIM_Semaphore_Release              0x80421f2d /* V11 */
  2749. struct  MUIP_Semaphore_Attempt              { ULONG MethodID; };
  2750. struct  MUIP_Semaphore_AttemptShared        { ULONG MethodID; };
  2751. struct  MUIP_Semaphore_Obtain               { ULONG MethodID; };
  2752. struct  MUIP_Semaphore_ObtainShared         { ULONG MethodID; };
  2753. struct  MUIP_Semaphore_Release              { ULONG MethodID; };
  2754.  
  2755.  
  2756. /****************************************************************************/
  2757. /** Applist                                                                **/
  2758. /****************************************************************************/
  2759.  
  2760. #ifdef _DCC
  2761. extern char MUIC_Applist[];
  2762. #else
  2763. #define MUIC_Applist "Applist.mui"
  2764. #endif
  2765.  
  2766. /* Methods */
  2767.  
  2768.  
  2769.  
  2770. /****************************************************************************/
  2771. /** Cclist                                                                 **/
  2772. /****************************************************************************/
  2773.  
  2774. #ifdef _DCC
  2775. extern char MUIC_Cclist[];
  2776. #else
  2777. #define MUIC_Cclist "Cclist.mui"
  2778. #endif
  2779.  
  2780. /* Methods */
  2781.  
  2782.  
  2783.  
  2784. /****************************************************************************/
  2785. /** Dataspace                                                              **/
  2786. /****************************************************************************/
  2787.  
  2788. #ifdef _DCC
  2789. extern char MUIC_Dataspace[];
  2790. #else
  2791. #define MUIC_Dataspace "Dataspace.mui"
  2792. #endif
  2793.  
  2794. /* Methods */
  2795.  
  2796. #define MUIM_Dataspace_Add                  0x80423366 /* V11 */
  2797. #define MUIM_Dataspace_Clear                0x8042b6c9 /* V11 */
  2798. #define MUIM_Dataspace_Find                 0x8042832c /* V11 */
  2799. #define MUIM_Dataspace_Merge                0x80423e2b /* V11 */
  2800. #define MUIM_Dataspace_ReadIFF              0x80420dfb /* V11 */
  2801. #define MUIM_Dataspace_Remove               0x8042dce1 /* V11 */
  2802. #define MUIM_Dataspace_WriteIFF             0x80425e8e /* V11 */
  2803. struct  MUIP_Dataspace_Add                  { ULONG MethodID; APTR data; LONG len; ULONG id; };
  2804. struct  MUIP_Dataspace_Clear                { ULONG MethodID; };
  2805. struct  MUIP_Dataspace_Find                 { ULONG MethodID; ULONG id; };
  2806. struct  MUIP_Dataspace_Merge                { ULONG MethodID; Object *dataspace; };
  2807. struct  MUIP_Dataspace_ReadIFF              { ULONG MethodID; struct IFFHandle *handle; };
  2808. struct  MUIP_Dataspace_Remove               { ULONG MethodID; ULONG id; };
  2809. struct  MUIP_Dataspace_WriteIFF             { ULONG MethodID; struct IFFHandle *handle; ULONG type; ULONG id; };
  2810.  
  2811. /* Attributes */
  2812.  
  2813. #define MUIA_Dataspace_Pool                 0x80424cf9 /* V11 i.. APTR              */
  2814.  
  2815.  
  2816.  
  2817. /****************************************************************************/
  2818. /** Configdata                                                             **/
  2819. /****************************************************************************/
  2820.  
  2821. #ifdef _DCC
  2822. extern char MUIC_Configdata[];
  2823. #else
  2824. #define MUIC_Configdata "Configdata.mui"
  2825. #endif
  2826.  
  2827. /* Methods */
  2828.  
  2829.  
  2830. /* Attributes */
  2831.  
  2832.  
  2833.  
  2834.  
  2835. /*****************************************/
  2836. /* End of automatic header file creation */
  2837. /*****************************************/
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845. /*************************************************************************
  2846. ** Structures and Macros for creating custom classes.
  2847. *************************************************************************/
  2848.  
  2849.  
  2850. /*
  2851. ** GENERAL NOTES:
  2852. **
  2853. ** - Everything described in this header file is only valid within
  2854. **   MUI classes. You may never use any of these things out of
  2855. **   a class, e.g. in a traditional MUI application.
  2856. **
  2857. ** - Except when otherwise stated, all structures are strictly read only.
  2858. */
  2859.  
  2860.  
  2861. /* Global information for every object */
  2862.  
  2863. struct MUI_GlobalInfo
  2864. {
  2865.     ULONG priv0;
  2866.     Object *mgi_ApplicationObject;
  2867.  
  2868.     /* ... private data follows ... */
  2869. };
  2870.  
  2871.  
  2872. /* Instance data of notify class */
  2873.  
  2874. struct MUI_NotifyData
  2875. {
  2876.     struct MUI_GlobalInfo *mnd_GlobalInfo;
  2877.     ULONG                  mnd_UserData;
  2878.     ULONG                  mnd_ObjectID; 
  2879.     ULONG priv1;
  2880.     ULONG priv2;
  2881.     ULONG priv3;
  2882.     ULONG priv4;
  2883. };
  2884.  
  2885.  
  2886. /* MUI_MinMax structure holds information about minimum, maximum
  2887.    and default dimensions of an object. */
  2888.  
  2889. struct MUI_MinMax
  2890. {
  2891.     WORD MinWidth;
  2892.     WORD MinHeight;
  2893.     WORD MaxWidth;
  2894.     WORD MaxHeight;
  2895.     WORD DefWidth;
  2896.     WORD DefHeight;
  2897. };
  2898.  
  2899. #define MUI_MAXMAX 10000 /* use this if a dimension is not limited. */
  2900.  
  2901.  
  2902. /* Hook message for custom layout */
  2903.  
  2904. struct MUI_LayoutMsg
  2905. {
  2906.     ULONG                  lm_Type;     /* type of message (see defines below)                      */
  2907.     struct MinList        *lm_Children; /* list of this groups children, traverse with NextObject() */
  2908.     struct MUI_MinMax      lm_MinMax;   /* results for MUILM_MINMAX                                 */
  2909.     struct
  2910.     {
  2911.         LONG Width;
  2912.         LONG Height;
  2913.     ULONG priv5;
  2914.     ULONG priv6;
  2915.     } lm_Layout;   /* size (and result) for MUILM_LAYOUT                       */
  2916. };
  2917.  
  2918. #define MUILM_MINMAX    1  /* MUI wants you to calc your min & max sizes */
  2919. #define MUILM_LAYOUT    2  /* MUI wants you to layout your children      */
  2920.  
  2921. #define MUILM_UNKNOWN  -1  /* return this if your hook doesn't implement lm_Type */
  2922.  
  2923.  
  2924. /* (partial) instance data of area class */
  2925.  
  2926. struct MUI_AreaData
  2927. {
  2928.     struct MUI_RenderInfo *mad_RenderInfo;     /* RenderInfo for this object */
  2929.     ULONG priv7;
  2930.     struct TextFont       *mad_Font;           /* Font */
  2931.     struct MUI_MinMax      mad_MinMax;         /* min/max/default sizes */
  2932.     struct IBox            mad_Box;            /* position and dimension */
  2933.     BYTE                   mad_addleft;        /* frame & innerspacing left offset */
  2934.     BYTE                   mad_addtop;         /* frame & innerspacing top offset  */
  2935.     BYTE                   mad_subwidth;       /* frame & innerspacing add. width  */
  2936.     BYTE                   mad_subheight;      /* frame & innerspacing add. height */
  2937.     ULONG                  mad_Flags;          /* see definitions below */
  2938.  
  2939.     /* ... private data follows ... */
  2940. };
  2941.  
  2942. /* Definitions for mad_Flags, other flags are private */
  2943.  
  2944. #define MADF_DRAWOBJECT        (1<< 0) /* completely redraw yourself */
  2945. #define MADF_DRAWUPDATE        (1<< 1) /* only update yourself */
  2946.  
  2947.  
  2948.  
  2949. /* MUI's draw pens */
  2950.  
  2951. #define MPEN_SHINE      0
  2952. #define MPEN_HALFSHINE  1
  2953. #define MPEN_BACKGROUND 2
  2954. #define MPEN_HALFSHADOW 3
  2955. #define MPEN_SHADOW     4
  2956. #define MPEN_TEXT       5
  2957. #define MPEN_FILL       6
  2958. #define MPEN_MARK       7
  2959. #define MPEN_COUNT      8
  2960.  
  2961.  
  2962. /* Mask for pens from MUI_ObtainPen() */
  2963.  
  2964. #define MUIPEN_MASK 0x0000ffff
  2965. #define MUIPEN(pen) ((pen) & MUIPEN_MASK)
  2966.  
  2967.  
  2968. /* Information on display environment */
  2969.  
  2970. struct MUI_RenderInfo
  2971. {
  2972.     Object          *mri_WindowObject;  /* valid between MUIM_Setup/MUIM_Cleanup */
  2973.  
  2974.     struct Screen   *mri_Screen;        /* valid between MUIM_Setup/MUIM_Cleanup */
  2975.     struct DrawInfo *mri_DrawInfo;      /* valid between MUIM_Setup/MUIM_Cleanup */
  2976.     UWORD           *mri_Pens;          /* valid between MUIM_Setup/MUIM_Cleanup */
  2977.     struct Window   *mri_Window;        /* valid between MUIM_Show/MUIM_Hide */
  2978.     struct RastPort *mri_RastPort;      /* valid between MUIM_Show/MUIM_Hide */
  2979.  
  2980.     ULONG            mri_Flags;         /* valid between MUIM_Setup/MUIM_Cleanup */
  2981.  
  2982.     /* ... private data follows ... */
  2983. };
  2984.  
  2985. /*
  2986. ** If mri_Flags & MUIMRI_RECTFILL, RectFill() is quicker
  2987. ** than Move()/Draw() for horizontal or vertical lines.
  2988. ** on the current display.
  2989. */
  2990. #define MUIMRI_RECTFILL (1<<0)
  2991.  
  2992. /*
  2993. ** If mri_Flags & MUIMRI_TRUECOLOR, display environment is a
  2994. ** cybergraphics emulated hicolor or true color display.
  2995. */
  2996. #define MUIMRI_TRUECOLOR (1<<1)
  2997.  
  2998. /*
  2999. ** If mri_Flags & MUIMRI_THINFRAMES, MUI uses thin frames
  3000. ** (1:1) apsect ratio instead of standard 2:1 frames.
  3001. */
  3002. #define MUIMRI_THINFRAMES (1<<2)
  3003.  
  3004. /*
  3005. ** If mri_Flags & MUIMRI_REFRESHMODE, MUI is currently
  3006. ** refreshing a WFLG_SIMPLEREFRESH window and is between
  3007. ** a BeginRefresh()/EndRefresh() pair.
  3008. */
  3009. #define MUIMRI_REFRESHMODE (1<<3)
  3010.  
  3011.  
  3012. /* the following macros can be used to get pointers to an objects
  3013.    GlobalInfo and RenderInfo structures. */
  3014.  
  3015. struct __dummyXFC2__
  3016. {
  3017.     struct MUI_NotifyData mnd;
  3018.     struct MUI_AreaData   mad;
  3019. };
  3020.  
  3021. #define muiNotifyData(obj) (&(((struct __dummyXFC2__ *)(obj))->mnd))
  3022. #define muiAreaData(obj)   (&(((struct __dummyXFC2__ *)(obj))->mad))
  3023.  
  3024. #define muiGlobalInfo(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_GlobalInfo)
  3025. #define muiUserData(obj)   (((struct __dummyXFC2__ *)(obj))->mnd.mnd_UserData)
  3026. #define muiRenderInfo(obj) (((struct __dummyXFC2__ *)(obj))->mad.mad_RenderInfo)
  3027.  
  3028.  
  3029.  
  3030. /* User configurable keyboard events coming with MUIM_HandleInput */
  3031.  
  3032. enum
  3033. {
  3034.     MUIKEY_RELEASE = -2, /* not a real key, faked when MUIKEY_PRESS is released */
  3035.     MUIKEY_NONE    = -1,
  3036.     MUIKEY_PRESS,
  3037.     MUIKEY_TOGGLE,
  3038.     MUIKEY_UP,
  3039.     MUIKEY_DOWN,
  3040.     MUIKEY_PAGEUP,
  3041.     MUIKEY_PAGEDOWN,
  3042.     MUIKEY_TOP,
  3043.     MUIKEY_BOTTOM,
  3044.     MUIKEY_LEFT,
  3045.     MUIKEY_RIGHT,
  3046.     MUIKEY_WORDLEFT,
  3047.     MUIKEY_WORDRIGHT,
  3048.     MUIKEY_LINESTART,
  3049.     MUIKEY_LINEEND,
  3050.     MUIKEY_GADGET_NEXT,
  3051.     MUIKEY_GADGET_PREV,
  3052.     MUIKEY_GADGET_OFF,
  3053.     MUIKEY_WINDOW_CLOSE,
  3054.     MUIKEY_WINDOW_NEXT,
  3055.     MUIKEY_WINDOW_PREV,
  3056.     MUIKEY_HELP,
  3057.     MUIKEY_POPUP,
  3058.     MUIKEY_COUNT /* counter */
  3059. };
  3060.  
  3061. #define MUIKEYF_PRESS        (1<<MUIKEY_PRESS)
  3062. #define MUIKEYF_TOGGLE       (1<<MUIKEY_TOGGLE)
  3063. #define MUIKEYF_UP           (1<<MUIKEY_UP)
  3064. #define MUIKEYF_DOWN         (1<<MUIKEY_DOWN)
  3065. #define MUIKEYF_PAGEUP       (1<<MUIKEY_PAGEUP)
  3066. #define MUIKEYF_PAGEDOWN     (1<<MUIKEY_PAGEDOWN)
  3067. #define MUIKEYF_TOP          (1<<MUIKEY_TOP)
  3068. #define MUIKEYF_BOTTOM       (1<<MUIKEY_BOTTOM)
  3069. #define MUIKEYF_LEFT         (1<<MUIKEY_LEFT)
  3070. #define MUIKEYF_RIGHT        (1<<MUIKEY_RIGHT)
  3071. #define MUIKEYF_WORDLEFT     (1<<MUIKEY_WORDLEFT)
  3072. #define MUIKEYF_WORDRIGHT    (1<<MUIKEY_WORDRIGHT)
  3073. #define MUIKEYF_LINESTART    (1<<MUIKEY_LINESTART)
  3074. #define MUIKEYF_LINEEND      (1<<MUIKEY_LINEEND)
  3075. #define MUIKEYF_GADGET_NEXT  (1<<MUIKEY_GADGET_NEXT)
  3076. #define MUIKEYF_GADGET_PREV  (1<<MUIKEY_GADGET_PREV)
  3077. #define MUIKEYF_GADGET_OFF   (1<<MUIKEY_GADGET_OFF)
  3078. #define MUIKEYF_WINDOW_CLOSE (1<<MUIKEY_WINDOW_CLOSE)
  3079. #define MUIKEYF_WINDOW_NEXT  (1<<MUIKEY_WINDOW_NEXT)
  3080. #define MUIKEYF_WINDOW_PREV  (1<<MUIKEY_WINDOW_PREV)
  3081. #define MUIKEYF_HELP         (1<<MUIKEY_HELP)
  3082. #define MUIKEYF_POPUP        (1<<MUIKEY_POPUP)
  3083.  
  3084.  
  3085. /* Some useful shortcuts. define MUI_NOSHORTCUTS to get rid of them */
  3086. /* NOTE: These macros may only be used in custom classes and are    */
  3087. /* only valid if your class is inbetween the specified methods!     */
  3088.  
  3089. #ifndef MUI_NOSHORTCUTS
  3090.  
  3091. #define _app(obj)         (muiGlobalInfo(obj)->mgi_ApplicationObject) /* valid between MUIM_Setup/Cleanup */
  3092. #define _win(obj)         (muiRenderInfo(obj)->mri_WindowObject)      /* valid between MUIM_Setup/Cleanup */
  3093. #define _dri(obj)         (muiRenderInfo(obj)->mri_DrawInfo)          /* valid between MUIM_Setup/Cleanup */
  3094. #define _screen(obj)      (muiRenderInfo(obj)->mri_Screen)            /* valid between MUIM_Setup/Cleanup */
  3095. #define _pens(obj)        (muiRenderInfo(obj)->mri_Pens)              /* valid between MUIM_Setup/Cleanup */
  3096. #define _window(obj)      (muiRenderInfo(obj)->mri_Window)            /* valid between MUIM_Show/Hide */
  3097. #define _rp(obj)          (muiRenderInfo(obj)->mri_RastPort)          /* valid between MUIM_Show/Hide */
  3098. #define _left(obj)        (muiAreaData(obj)->mad_Box.Left)            /* valid during MUIM_Draw */
  3099. #define _top(obj)         (muiAreaData(obj)->mad_Box.Top)             /* valid during MUIM_Draw */
  3100. #define _width(obj)       (muiAreaData(obj)->mad_Box.Width)           /* valid during MUIM_Draw */
  3101. #define _height(obj)      (muiAreaData(obj)->mad_Box.Height)          /* valid during MUIM_Draw */
  3102. #define _right(obj)       (_left(obj)+_width(obj)-1)                  /* valid during MUIM_Draw */
  3103. #define _bottom(obj)      (_top(obj)+_height(obj)-1)                  /* valid during MUIM_Draw */
  3104. #define _addleft(obj)     (muiAreaData(obj)->mad_addleft  )           /* valid during MUIM_Draw */
  3105. #define _addtop(obj)      (muiAreaData(obj)->mad_addtop   )           /* valid during MUIM_Draw */
  3106. #define _subwidth(obj)    (muiAreaData(obj)->mad_subwidth )           /* valid during MUIM_Draw */
  3107. #define _subheight(obj)   (muiAreaData(obj)->mad_subheight)           /* valid during MUIM_Draw */
  3108. #define _mleft(obj)       (_left(obj)+_addleft(obj))                  /* valid during MUIM_Draw */
  3109. #define _mtop(obj)        (_top(obj)+_addtop(obj))                    /* valid during MUIM_Draw */
  3110. #define _mwidth(obj)      (_width(obj)-_subwidth(obj))                /* valid during MUIM_Draw */
  3111. #define _mheight(obj)     (_height(obj)-_subheight(obj))              /* valid during MUIM_Draw */
  3112. #define _mright(obj)      (_mleft(obj)+_mwidth(obj)-1)                /* valid during MUIM_Draw */
  3113. #define _mbottom(obj)     (_mtop(obj)+_mheight(obj)-1)                /* valid during MUIM_Draw */
  3114. #define _font(obj)        (muiAreaData(obj)->mad_Font)                /* valid between MUIM_Setup/Cleanup */
  3115. #define _minwidth(obj)    (muiAreaData(obj)->mad_MinMax.MinWidth)     /* valid between MUIM_Show/Hide */
  3116. #define _minheight(obj)   (muiAreaData(obj)->mad_MinMax.MinHeight)    /* valid between MUIM_Show/Hide */
  3117. #define _maxwidth(obj)    (muiAreaData(obj)->mad_MinMax.MaxWidth)     /* valid between MUIM_Show/Hide */
  3118. #define _maxheight(obj)   (muiAreaData(obj)->mad_MinMax.MaxHeight)    /* valid between MUIM_Show/Hide */
  3119. #define _defwidth(obj)    (muiAreaData(obj)->mad_MinMax.DefWidth)     /* valid between MUIM_Show/Hide */
  3120. #define _defheight(obj)   (muiAreaData(obj)->mad_MinMax.DefHeight)    /* valid between MUIM_Show/Hide */
  3121. #define _flags(obj)       (muiAreaData(obj)->mad_Flags)
  3122.  
  3123. #endif
  3124.  
  3125.  
  3126.  
  3127. /* MUI_CustomClass returned by MUI_CreateCustomClass() */
  3128.  
  3129. struct MUI_CustomClass
  3130. {
  3131.     APTR mcc_UserData;                  /* use for whatever you want */
  3132.  
  3133.     struct Library *mcc_UtilityBase;    /* MUI has opened these libraries */
  3134.     struct Library *mcc_DOSBase;        /* for you automatically. You can */
  3135.     struct Library *mcc_GfxBase;        /* use them or decide to open     */
  3136.     struct Library *mcc_IntuitionBase;  /* your libraries yourself.       */
  3137.  
  3138.     struct IClass *mcc_Super;           /* pointer to super class   */
  3139.     struct IClass *mcc_Class;           /* pointer to the new class */
  3140.  
  3141.     /* ... private data follows ... */
  3142. };
  3143.  
  3144.  
  3145.  
  3146.  
  3147. #endif /* MUI_H */
  3148.